Re: is there an "in" qualifier in PHP?
| From: | J Smith | Date: | Tue, 26 Feb 2002 21:35:40 +0000 |
| Subject: | Re: is there an "in" qualifier in PHP? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-86319@lists.php.net to get a copy of this message | ||
That will result in a parse error. I think you mean
if (in_array($row['id'], $selected_users)) { /* execute */ }
J
Stewart G. wrote:
> if ($row['id'] in_array ($selected_users)) { // execute }
>
> =S.
>