Math Functions II
Well this is the outcome i got :
and this is the error :
Oops, try again. The random output you printed from your name should be just one character.
This is my code :
print rand(1,9)."<br>"; $name = "badr"; $len = strlen( $name ) - 1; $rand = rand( -1 , $len); print substr( $name , $rand , $rand );
Help me out to find the error