gera3d
6/13/2015 - 3:27 AM

Little Sample

Little Sample

<?php //Here is what I think you where asking me for on the reverse thing
$hello = "Hello ";
echo strrev( $hello );

$hello_back = strrev( $hello );

//Reverse the string back without using the stock function
$length = strlen($hello_back)-1;
$i = 0;
while ($i < $length+1) {
    echo $hello_back[$length-$i];
    $i++;
}

//Create your own custom sum function
function sum_custom($x, $y) {
    $z = $x + $y;
    return $z;
} ?>