$random = rand(0,4);
$name = "Nivaz";
$len = strlen ($name)-($random);
$char = substr($name, $random, $len);
it gives a rand() output should be an integer error
though I get answer for a random no and random characters
I dont understand the mistake here. Can someone help me ?