Start PHP Code RESULT
a = 2
f = 1
x = 5
End PHP Code RESULT
The PHP Code START
$first = array("x"=>5,"a"=>2,"f"=>1);
ksort($first);

foreach ($first as $key => $val) {
    print "$key = $val<br />";
}
The PHP Code END