Page 1 of 1

in_array

Posted: Fri Oct 28, 2005 2:26 pm
by shiznatix
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

Code: Select all

if (in_array($ids, $prev))
         $prev = true;
if (in_array($ids, $next))
     $next = true;
i turned $prev and $next are both strings

Code: Select all

var_dump($prev);
var_dump($next);

returns

string(1) "0" string(1) "2"
whats up with this?

edit: i am useing PHP 5

Posted: Fri Oct 28, 2005 2:28 pm
by shiznatix
hahahaha ignore that. i was putting the array as the wrong parameter. please ignore me