Forum Moderators: coopster
How can I achieve: if ($name == dave OR andy) {echo "Hello";}
edit: remember to retype ¦¦ as this forum breaks the pipes.
or use:
if ($name == "dave" OR $name == "andy") {echo "Hello";}
Regards
function in($value, $list) { for ($i = 0; $i < count($list); $i++) { if ($value == $list[$i]) return true; } return false; }
This can come in handy.
[edited by: FourDegreez at 2:50 am (utc) on Oct. 16, 2007]