How do I go about catching an undefined variable error in PHP? I have a variable called $place that will only have a value if the user enters some details on another page, however if it has no value then it has an undefined variable error on the screen which I don't want. I tried:
<?php try{ echo $place; }catch(Exception $e){echo 'No Place Set';}?>
but that doesn't work. Any suggestions?