Is anything wrong with this code?
<?php
$variable = ;
if (isset($variable))
{
echo $variable ;
echo "also this" ;
}
else
echo "The variable is not set" ;
?>
also, the other potential value of the variable is :
$variable = <a href="http://www.mysite.com/article">This Article</a>;
To clarify, I have a variable that may hold one of two possible values : an a href tag with it's url, or notihng at all. I need to have two different printouts for each of these cases, maybe I'm not doing it the right way though!