PHP Operators - '00' is not false

gotchas php

Thu Sep 25 21:53:00 -0700 2008

A PHP string will be considered false only under two conditions: either when it is empty or when it contains the single character 0 (zero).

A string of multiple zeros will result in a return value oftrue.

blog comments powered by Disqus