PHP » GoLang |
login |
register |
about
|
GoLang Collator::asort
request it (395)
GoLang replacement for PHP's Collator::asort
[edit | history]
Collator::asortcollator_asort(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Collator::asort -- collator_asort — Sort array maintaining index association DescriptionObject oriented style
public
bool
Collator::asort
( array
&$arr
[, int $sort_flag
] )Procedural style This function sorts an array such that array indices maintain their correlation with the array elements they are associated with. This is used mainly when sorting associative arrays where the actual element order is significant. Array elements will have sort order according to current locale rules. Equivalent to standard PHP asort(). Parameters
Return Values
Returns Examples
Example #1 collator_asort()example
<?php The above example will output: array ( 'c' => '7', 'b' => '50', 'a' => '100', )array ( 'a' => '100', 'b' => '50', 'c' => '7', ) See Also
|
more
Recently updated
more
Most requested
more
Last requests
|