August 2000
Intermediate to advanced
800 pages
13h 15m
English
As you remember from Chapter 2, PHP has the concepts of true and false. Zero and an empty string are considered to be false. Any other numerical value or string is true. These concepts were discussed in regard to relational operators, but they are also used in control statements. Control statements like if expect a boolean value, so any value they are given will be converted to a boolean.
Read now
Unlock full access