[PHP] re:Switch - Case Statement Questions

2012-11-16 Thread Omar Muhsin
Hello, I was just wondering after writting the code in version 2 here below, it turns out in testing that it actually PHP is not validating the expressions instead always I get the first case. 1.Using nested if statement {THE INTENDED BEHAVIOR}: if ($count 14) $boxes = 3;

Re: [PHP] re:Switch - Case Statement Questions

2012-11-16 Thread Ken Robinson
At 07:10 AM 11/16/2012, Omar Muhsin wrote: Hello, I was just wondering after writting the code in version 2 here below, it turns out in testing that it actually PHP is not validating the expressions instead always I get the first case. 1.Using nested if statement {THE INTENDED BEHAVIOR}:

Re: [PHP] re:Switch - Case Statement Questions

2012-11-16 Thread IƱigo Medina
On Fri, 16 Nov 2012, Ken Robinson wrote: At 07:10 AM 11/16/2012, Omar Muhsin wrote: Hello, I was just wondering after writting the code in version 2 here below, it turns out in testing that it actually PHP is not validating the expressions instead always I get the first case. 1.Using