On Thu, Oct 21, 2010 at 08:15:40PM +1000, Russell Dias wrote: > Whats wrong with an if *construct* ? I understand that the ternary > operator is another way of doing it. Using it in such a small scenario > is perfectly justifiable. Its ridiculous to use in more complicated > scenarious because of readability issues. It depends on what the output is. If it actually is either "TRUE" or "FALSE" then it would be fine. > > Direct string comparison? You suggested yet another function call, > settype I believe. Please do not make benchmark claims without any > data. You use preg_match which loads the PCRE library which obviously is overkill here. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php