can any one help me how to get the sorting of the numbers;
num1 = 1
num2 = 1
num3 = 3
num4 = 5
$values = array($_POST["num1"] => 1, $_POST["num2"] => 2,$_POST["num3"] => 3,$_POST["num4"] =>4);
asort($values);
foreach($values as $key => $val){
echo "<br>$key = $val<br>";
}
The num1 is not printed.. and i got an out put of
1 = 2
3 = 3
4 = 4
how can i got the output complete like this?
1 = 1 | 1 = 2 | 3 = 3 | 4 = 4