note 49524 rejected from language.types.array by nlopess

From: Date: Mon, 31 Jan 2005 20:05:37 +0000
Subject: note 49524 rejected from language.types.array by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-84287@lists.php.net to get a copy of this message
Note Submitter: spencer at neoxios dot com ---- im using a or with a array, as you can see : if ($fn == $exclude[0] || $fn == $exclude[1]) the thing is if i have 20 arrays i would have to make some long if statement if ($fn == $exclude[0] || $fn == $exclude[1] || $fn == $exclude[2] || $fn == $exclude[3] ) etc anyone know of a quicker way of doing this?

« previous php.notes (#84287) next »