[Solved] My code displays what I dont ask it to


sort() and rsort() return true when sucessful which is converted to integer 1 when echoed. Execute the sort functions, don’t echo them:

echo "<pre>";
echo "<br /><br />Sort values: ";
sort($numbers);
print_r($numbers);

echo "<br /><br />Reverse sort values: ";
rsort($numbers); 
print_r($numbers);
echo "</pre>";

2

solved My code displays what I dont ask it to