Sort array by value alphabetically php

You want the php function “asort”:

http://php.net/manual/en/function.asort.php

it sorts the array, maintaining the index associations.

Edit: I’ve just noticed you’re using a standard array (non-associative). if you’re not fussed about preserving index associations, use sort():

http://php.net/manual/en/function.sort.php

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)