Re: [PHP-DB] switch issue

2008-01-06 Thread Chris
[EMAIL PROTECTED] wrote: Hello all, Having a problem with the behaviour of switch when mixing variable types. Eg this code interprets $page as 0 in the switch. It's not a problem to alter 'review' to a number, just less elegant. Can anybody shed a little light on mixed variable types in switc

[PHP-DB] switch issue

2008-01-06 Thread sublimino
Hello all, Having a problem with the behaviour of switch when mixing variable types. Eg this code interprets $page as 0 in the switch. It's not a problem to alter 'review' to a number, just less elegant. Can anybody shed a little light on mixed variable types in switch statements please? While