- var_dump: documentation ( source)
- ksort: documentation ( source)
<?php
defined('SORT_FLAG_CASE') or define('SORT_FLAG_CASE', 8);
echo 'SORT_FLAG_CASE : '.SORT_FLAG_CASE."\n";
$arr = array('foo' => 2,'Bar' => 1, 'bar' => 3, 'a' => 0);
ksort($arr, SORT_STRING|SORT_FLAG_CASE);
var_dump($arr);