For Programmers: Free Programming Magazines  


Home > Archive > PHP SQL > January 2007 > Re: Zero and NULL (Stuckle)









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Zero and NULL (Stuckle)
Sanders Kaufman

2007-01-10, 4:01 am

Paul Lautman wrote:
> I have the following switch statement:


> Is it correct that php treats NULL as 0?
> Can anyone suggest a good fix?


Stuckle had a great little one-line if-then to deal with that.
He posted it for me a few days ago, but I didn't save it.
I was gonna axe him to repost it, and this is a good opportunity.

Would you post it again, Herr Stuckle?
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com