A
A
Alexander Vladimirovich2015-10-16 11:12:34
PHP
Alexander Vladimirovich, 2015-10-16 11:12:34

How to sort an array in lexicographic order in PHP?

It is required to sort an array of strings in lexicographic order using regular PHP tools

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2015-10-16
@polyanin

Normal sort should be
fine php.net/manual/ru/function.sort.php
php.net/manual/ru/function.asort.php - to save array keys

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question