I need a PHP code that display numbers from 1 to 10 and number 1 will be letter A, number 5 letter B and 9 Letter C, i maked it with FOR intruction but not so well..
<?php
for($i=1;$i<=10;$i++)
{
if ($i==1)
{
echo 'A';
}
echo "number:" .$i."<br />";
}
?>
Instead of having a bunch of
ifs, try making a map of numbers to letters.