[UPHPU] testing multiple items in an if

Dave Smith dave at thesmithfam.org
Sun Jan 20 18:18:56 MST 2008


Wayne Jensen wrote:
> One way to get this functionality is with the in_array() function.
>
> if ( !in_array($var,Array('a','b','c','d','e')) ) doStuff();
>   

Cool idea!

--Dave


More information about the UPHPU mailing list