M
M
megamutex2015-11-12 15:34:54
PHP
megamutex, 2015-11-12 15:34:54

How to sort an array from a database by a certain letter?

There is an output of a certain list from sql Array("NAME"=>"ASC"). Sorted alphabetically by name. Question: how to sort starting from a certain letter?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
shagguboy, 2015-11-12
@shagguboy

make hands another field in the selection and sort by it.

A
Alex Safonov, 2015-11-12
@elevenelven

php.net/manual/en/function.usort.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question