- print_r: documentation ( source)
- sort: documentation ( source)
<?php
$array = [
"2" => "abc",
"ab" => "abc12",
"lkT" => 2,
45 => "test",
"This" => "is this",
false => "abc012",
" " => 22.22,
];
print_r($array);
sort($array, SORT_NATURAL);
print_r($array);