Re: [PHP] Re: pattern containing single quote in IF statement

2007-01-04 Thread Richard Lynch
On Tue, December 26, 2006 2:42 pm, Frank Arensmeier wrote: > First of all, I strongly feel that you should have double quotes > around the string you like to compare with (e.g. "new"). Otherwise, > you are comparing against a string but to something else (integer ?). > Without quotes, PHP will thro

Re: [PHP] Re: pattern containing single quote in IF statement

2006-12-26 Thread Frank Arensmeier
First of all, I strongly feel that you should have double quotes around the string you like to compare with (e.g. "new"). Otherwise, you are comparing against a string but to something else (integer ?). Without quotes, PHP will throw an error (not sure if it will throw a fatal error or some