ID: 20681
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Operating System: Win 2K SP3
PHP Version: 4.2.3
New Comment:
Um, actually I was wrong about understanding. The code you poste
7;t find the
elements if you change the array_search() calls to in_array().
[2002-11-27 11:41:45] [EMAIL PROTECTED]
array_search() does not seem to work when the needle is an object.
Sample code:
Output:
Warning: Wrong da
nge the array_search() calls to in_array().
[2002-11-27 11:41:45] [EMAIL PROTECTED]
array_search() does not seem to work when the needle is an object.
Sample code:
Output:
Warning: Wrong datatype for first argument in call to
array_search in C:\dparks\Documents\html\tmp.php on
em to work when the needle is an object.
Sample code:
Output:
Warning: Wrong datatype for first argument in call to
array_search in C:\dparks\Documents\html\tmp.php on line
17
bool(false)
Warning: Wrong datatype for first argument in call to
array_search in C:\dparks\Documents\html\tm
datatype for first argument in call to array_search
in C:\dparks\Documents\html\tmp.php on line 17
bool(false)
Warning: Wrong datatype for first argument in call to array_search
in C:\dparks\Documents\html\tmp.php on line 20
bool(false)
int(1)
Environment:
This is PHP 4.2.3 (binary from Zend