- var_dump: documentation ( source)
- ksort: documentation ( source)
<?php
$packed = array();
for ($i = 0; $i < 40; $i++) {
$packed[] = 'the number: ' . $i;
}
$ksort_string = $packed;
ksort($ksort_string, SORT_STRING | SORT_CASE);
var_dump($ksort_string);