I know there is
if (isset($string))
{
echo $string;
}
but is there a way to do this with a statement? I found one thing that looks like it might be it but I was wrong. It was
var_dump(isset($string));
So im looking for something that does all of the if variable is set, then echo the variable all in one statement..
Maybe something like:
That is called a Ternary Operator.
Not sure I fully understand the question.