Is it possible to set the value of a variable depending on a condition set by the IF statement?
say $category = "Feature";
Would this be correct?:
if ($category = "Feature")
{
$c = "f";
}
elseif ($category = "Editorial")
{
$c = "e";
}
elseif ($category = "Interview")
{
$c = "i";
}