| natcasesort <<< |
natsort | next >>> |
6.2 Tableaux 6 Index des fonctions Manuel PHP . Introduction . Pré-requis . Installation . Configuration à l'exécution . Types de ressources . Constantes Prédefinies . Voir aussi . array_change_key_case . array_chunk . array_count_values . array_diff_assoc . array_diff . array_fill . array_filter . array_flip . array_intersect_assoc . array_intersect . array_key_exists . array_keys . array_map . array_merge_recursive . array_merge . array_multisort . array_pad . array_pop . array_push . array_rand . array_reduce . array_reverse . array_search . array_shift . array_slice . array_splice . array_sum . array_unique . array_unshift . array_values . array_walk . array . arsort . asort . compact . count . current . each . end . extract . in_array . key . krsort . ksort . list . natcasesort ->natsort . next . pos . prev . range . reset . rsort . shuffle . sizeof . sort . uasort . uksort . usort |
6.2.54 natsort() Tri d'un tableau avec l'algorithme à "ordre naturel"[ Exemples avec natsort ] PHP 4 void natsort ( array array )natsort implémente un algorithme de tri qui traite les chaînes alpha-numériques comme un être humain : c'est ce qui est appelé l'"ordre naturel". Un exemple de la différence de traitement entre un tel algorithme et un algorithme de tri de chaînes (comme lorsqu'on utilise sort ) est illustré ci-dessous :
L'exemple ci-dessous génère l'affichage suivant :
Voir aussi array-multisort , arsort , asort , krsort , ksort , natsort , natcasesort , rsort , sort , uasort , uksort , usort , strnatcmp et strnatcasecmp . |
| << | natsort | >> |
| natcasesort | Tableaux | next |