I have a PHP array
I want to sort it alphabetically and keep a precise entry at the top:
$arr = array ("Orange", "Banana", "Strawberry", "Apple", "Pear");
asort($arr);
Now this will output:
Apple, Banana, Orange, Pear, Strawberry
I want it to keep Orange as the first entry then reorder the others:
Orange, Apple, Banana, Pear, Strawberry
Thanks.
Get first element from array, then return it back:
Update with unknown
orange
position: