RE: [PHP] is there an in qualifier in PHP?

2002-02-26 Thread Johnson, Kirk
http://www.php.net/manual/en/function.in-array.php Kirk -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 9:34 AM To: PHP Subject: [PHP] is there an in qualifier in PHP? I have a problem with some code (posted below), which I think

Re: [PHP] is there an in qualifier in PHP?

2002-02-26 Thread Stewart G.
if ($row['id'] in_array ($selected_users)) { // execute } =S. On Tue, 26 Feb 2002, Erik Price wrote: I have a problem with some code (posted below), which I think I can solve using a method similar to that found in Python: if ($item in $potential_items) { // do one thing } else {

Re: [PHP] is there an in qualifier in PHP?

2002-02-26 Thread J Smith
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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] is there an in qualifier in PHP?

2002-02-26 Thread Stewart Gateley
I'm tired :) -- Stewart --- J Smith [EMAIL PROTECTED] wrote: 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. --