You are viewing an older version of the site. Click here to view
the latest version of this page. (This may be a dead link, if so, try the root page of the docs
here.)
array_normalize
Returns a new normal array, given an associative array. (If the array passed in is not associative, a copy of the array is returned).
Vital Info
Name | array_normalize |
---|---|
Returns | array |
Usages | array |
Throws | ms.lang.CastException |
Since | 3.3.0 |
Restricted | No |
Optimizations | NO_SIDE_EFFECTS |
Usages
array_normalize(array)
Examples
Example 1
Basic usageGiven the following code:

The output would be:
:{a, c, b}
Example 2
Usage with normal arrayGiven the following code:

The output would be:
:{1, 2, 3}
Find a bug in this page? Edit this page yourself, then submit a pull request. (Note this page is automatically generated from the documentation in the source code.)