Hey all ,
In the same exercise , im using this code:-
print rand();//Everything what we must do to
//solve this, is ONLY INSERT 'PRINT' to
//And the rest of code is unchanged: ?> </p> <p> <?php $name = "Dhanush Rajendra"; $namelength = strlen($name); print substr($name, rand(0, $namelength - 1), 1); ?>
So , when i execute it . This shows up "Oops, try again. Your printed output from rand() should be an integer."
So where exactly is the issue in the code?