Couls someone help me fix this code, I think I need to put in a function and a return but i'm not quite sure.
All the code does is return the value # for everything even letters
$letter = ucfirst($_POST['tut_name']);
$letter2 = $letter{0};
if($letter2 = 1)
{
$letter3 = '#';
}
else if ($letter2 = 2)
{
$letter3 = '#';
}
else if ($letter2 = 3)
{
$letter3 = '#';
}
else if ($letter2 = 4)
{
$letter3 = '#';
}
else if ($letter2 = 5)
{
$letter3 = '#';
}
else if ($letter2 = 6)
{
$letter3 = '#';
}
else if ($letter2 = 7)
{
$letter3 = '#';
}
else if ($letter2 = 8)
{
$letter3 = '#';
}
else if ($letter2 = 9)
{
$letter3 = '#';
}
else if ($letter2 = 0)
{
$letter3 = '#';
}
else $letter3 = $letter{0};