- print_r: documentation ( source)
<?php
$a = array('Birnen', 'Äpfel', 'über', 'Über', 'drüber', 'Österreich');
$coll = new Collator('de_DE');
$coll->setAttribute(Collator::NUMERIC_COLLATION, Collator::ON);
$coll->setAttribute(Collator::CASE_FIRST, Collator::UPPER_FIRST);
$coll->sort($a);
print_r($a);
?>