in_array
Posted: Fri Oct 28, 2005 2:26 pm
in_array is returning this for me
Warning: in_array() [function.in-array]: Wrong datatype for second argument in D:\The Website Folder\public_html\gallery\inc\index.inc.php on line 151
i turned $prev and $next are both strings
whats up with this?
edit: i am useing PHP 5
Warning: in_array() [function.in-array]: Wrong datatype for second argument in D:\The Website Folder\public_html\gallery\inc\index.inc.php on line 151
Code: Select all
if (in_array($ids, $prev))
$prev = true;
if (in_array($ids, $next))
$next = true;Code: Select all
var_dump($prev);
var_dump($next);
returns
string(1) "0" string(1) "2"edit: i am useing PHP 5