Is there in PHP something similar to JavaScript\'s:
alert(test || \'Hello\');
So, when test is undefined or null we\'ll see Hello, otherwis
There may be a better way, but this is the first thing that came to my mind:
echo (!$test) ? "Hello" : $test;