- Output for 5.6.38, 7.1.0 - 7.1.23, 7.2.0 - 7.2.11
- Fatal error: Cannot redeclare sort() in /in/JQUtg on line 6
Process exited with code 255.
<?php
function sort($array){
asort($array);
foreach($array as $v){
echo $v."<br>";}
}
$arr[]="5";
$arr[]="2";
$arr[]="1";
$arr[]="4";
$arr[]="7";
$l=sort($arr);
?>