I store the number 1 2 3 4
as the answer to multiple choice questions in MySQL database,
But I want to display them in a b c d
on web page.
I'm using PHP, how can I transform the numbers to letters using PHP?
echo "
<h2>question</h2>
<p>".$row[0]."</p>
<h2>answer</h2>
<p>".$row[1]."</p>";
The row[1]
is {1,2,3,4}
now, I want it turn to {A,B,C,D}
.
Can any one please have a look and tell me how to do it?