As of php 5.01:
if using the short cut if - else syntax:
condition ? true : false;
be careful. inside of condition the and / or operators do not work as expected. use instead && / ||.
Example:
<?php
$sText = (!isset($searchText) or $sText === "" ? "NULL" : $sText);
?>
Always sets $sText to "1".
<?php
$sText = (!isset($searchText) || $sText === "" ? "NULL" : $sText);
?>
Sets $sText appropriately.