As the title suggests i want to sort an array by value alphabetically in php.
$arr = array( \'k\' => \'pig\', \'e\' => \'dog\' )
Note that sort() operates on the array in place, so you only need to call
sort($a); doSomething($a);
This will not work;
$a = sort($a); doSomething($a);