Re: [PHP] Please help me with in_array

2006-08-04 Thread Jochem Maas
Chris G wrote: > I have already tried using > > foreach($_GET['question'] as $key => $value) > > the in_array function does not work with it for some reason. 'does not work with it' ?? use var_dump(); to see what's actually in your variables. > > > On 8/5/06, *Jochem Maas* <[EMAIL PROTECT

Re: [PHP] Please help me with in_array

2006-08-04 Thread Jochem Maas
Chris G wrote: > Hi all > > I have been stuck on this problem for 4 hours. Please anyone that can help > here I would appreciate it. > > If I print_r($_GET) I have > > Array ([question] => Array ( [10] => 1 [11] => 2 [12] => 1 [13] => 1)' > > > So now I try > > foreach($_GET['question'] as $k

[PHP] Please help me with in_array

2006-08-04 Thread Chris G
Hi all I have been stuck on this problem for 4 hours. Please anyone that can help here I would appreciate it. If I print_r($_GET) I have Array ([question] => Array ( [10] => 1 [11] => 2 [12] => 1 [13] => 1)' So now I try foreach($_GET['question'] as $key) { if(!in_array($key, $_SESSION[