Re: [PHP] Re: Switch statement Question

2009-02-02 Thread Frank Stanovcak
"tedd" wrote in message news:p06240801c5aa0ed7d...@[192.168.1.101]... > At 4:16 PM +0100 1/30/09, Jochem Maas wrote: >>tedd schreef: >>> At 4:43 PM -0500 1/29/09, Frank Stanovcak wrote: >" yes...that is legal. as long as the statment resolves to a boolean it will

Re: [PHP] Re: Switch statement Question

2009-01-31 Thread tedd
At 4:16 PM +0100 1/30/09, Jochem Maas wrote: tedd schreef: At 4:43 PM -0500 1/29/09, Frank Stanovcak wrote: >" yes...that is legal. as long as the statment resolves to a boolean it will work. It's not technically correct, but it does work. There you go again. What's technically corr

Re: [PHP] Re: Switch statement Question

2009-01-30 Thread Jochem Maas
tedd schreef: > At 4:43 PM -0500 1/29/09, Frank Stanovcak wrote: >> >" >> >> yes...that is legal. as long as the statment resolves to a boolean it >> will >> work. It's not technically correct, but it does work. > > There you go again. What's technically correct? hiya tedd, you mean to ask "n

[PHP] Re: Switch statement Question

2009-01-30 Thread tedd
At 4:43 PM -0500 1/29/09, Frank Stanovcak wrote: >" yes...that is legal. as long as the statment resolves to a boolean it will work. It's not technically correct, but it does work. There you go again. What's technically correct? Cheers, tedd -- --- http://sperling.com http://ancient

[PHP] Re: Switch statement Question

2009-01-29 Thread Frank Stanovcak
>"Alice Wei" wrote in message >news:snt101-w587cd616331fc59b84834af0...@phx.gbl... > >Hi, > > I have a code snippet here as in the following: > >//Switch statements between the four options >switch($string) { >case "": >$string= "NOT book.author='All'"; >break; >default: >$string= $string . "AN