In order to get random alphabet from a to c, I wrote the code below
echo $random_number ;
But the code above doesn't work correctly. I guess the code in read has some problem.
How can I fix the problem?
You enclosed the $random_number call in single quotes - So it's looking for the value in the array that corresponds to $randon_number I believe, just remember when you're referencing the position of something in an array through an integer, don't use quotes.