- var_dump: documentation ( source)
- ksort: documentation ( source)
<?php
$foo = array(0,1,2,3,4,40,50,66,72,'f','0','g',4,35,5,654,654,2,2345,456,'asdf');
$bar = array(0,1,2,3,4,40,50,66,72,'f','0','g',4,35,5,654,654,2,2345,456,'asdf');
$quux = array('a' => 1, 'aaa' => 2, 'aa' => 3);
ksort($foo);
ksort($quux, SORT_STRING);
ksort($bar, SORT_STRING);
var_dump($quux);
var_dump($foo == $bar);