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
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 {
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:
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.
--
4 matches
Mail list logo