RE: [PHP] Array help.

2012-10-24 Thread Ford, Mike
> From: Paul Halliday [paul.halli...@gmail.com] > Sent: 24 October 2012 18:38 > To: PHP-General > Subject: [PHP] Array help. > > $groupMappings = array('40' =>'A','41' =>'B','1' =>'C'); > > $ocTest = explode(".", $ip); > $groupKeys = array_keys($groupMappings); > $groupTest = arra

Re: [PHP] Array help.

2012-10-24 Thread Paul Halliday
On Wed, Oct 24, 2012 at 2:40 PM, Samuel Lopes Grigolato wrote: > Could you try changing this: > > if($groupTest != FALSE) { > > to this: > > if($groupTest !== FALSE) { > > ? Hah. Perfect! Thanks. > > -Mensagem original- > De: Paul Halliday [mailto:paul.halli...@gmail.com] > Enviada em: q

RES: [PHP] Array help.

2012-10-24 Thread Samuel Lopes Grigolato
Could you try changing this: if($groupTest != FALSE) { to this: if($groupTest !== FALSE) { ? -Mensagem original- De: Paul Halliday [mailto:paul.halli...@gmail.com] Enviada em: quarta-feira, 24 de outubro de 2012 15:38 Para: PHP-General Assunto: [PHP] Array help. I am processing v4IP'