This is an error 404
There are `0` results
preferences:
160.63 ms | 1398 KiB | 7 Q<?php
function rev($str) {
if ( ! $str ) {
return;
}
return rev(substr($str,1)) . $str{0};
}
function sum($arr) {
if ( empty($arr) ) {
return 0;
}
return $arr[0] + sum(array_shift($arr));
}
$a = array(5,4,7,8,9,3);
echo sum($a);
echo rev('hola mundos ninos');