$a=array('a'=>'`a:1:`','b'=>'`a:`','c'=>'`a:0:`');
arsort($a);
print_r($a);
I expect this code to output
Array
(
[a] => `a:1:`
[c] => `a:0:`
[b] => `a:`
)
but it actually outputs
Array
(
[b] => `a:`
[a] => `a:1:`
[c] => `a:0:`
)
Do you understand why the backticks are messing up ?