Posted by Steve on 10/02/07 18:35
> function isItZero($x) { > if ($x) { > echo "non zero param $x\n"; > } else if (!$x && $x === 0) { > echo "int zero $x\n"; > } else if (!$x && $x === '0') { > echo "char zero $x\n"; > } else { > echo "Blank param\n"; > } > } php.net documentation...see: switch
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming