A little code snippet I wanted to share

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



if(('12/24' < $myDate) && ('12/26' > $myDate) && (TRUE == $belief)){
   echo "Merry Christmas!\n";
} elseif(TRUE == $variationOnATheme){
   echo "Happy Holidays!\n";
} elseif(TRUE == $liberal) {
   echo "Joyous ChrisMaHanuKwanzica!\n";
} else {
   echo "Bah Humbug!\n";
}

I probably could have used a switch statement. YMMV

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux