|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-04-22 02:09 UTC] yohgaki@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 03:00:01 2025 UTC |
Below is from documentation of in_array() $a = array(array('p', 'h'), array('p', 'r'), 'o'); if (in_array(array ('p', 'h'), $a)) echo "'ph' is found\n"; if (in_array(array ('f', 'i'), $a)) echo "'fi' is not found\n"; if (in_array('o', $a)) echo "'o' is found\n"; it runs it gice the followign error Warning: Wrong datatype for first argument in call to in_array in /home/www/vaner/test.php on line 4 Warning: Wrong datatype for first argument in call to in_array in /home/www/vaner/test.php on line 6 'o' is found I thought it should allow array as a search argument. what the...?