RE: [PHP] Disturbing parsing problems

2002-07-29 Thread cteubner
Sorry to double-post but this brought up something I didn't realize wasn't clear in my original post. When I say: if () ; I am using the one-line if/elseif/else syntax, which works like this: if($foo) echo $bar; elseif($x) echo $y; else echo $z; This is a self-contained if statement, as in C,

Re: [PHP] Disturbing parsing problems

2002-07-29 Thread Steve Edberg
At 12:19 PM -0400 7/29/02, <[EMAIL PROTECTED]> wrote: > I added a few number_format() statements to previously working code (not >having changed any {}s ) and it started getting parse errors, 'unexpected >t_if, expected t_while'. In other words, it thinks the do statement shown >below has been

RE: [PHP] Disturbing parsing problems

2002-07-29 Thread cteubner
Personally, I *love* one-line if statements :D However, I took your advice and used braces for all of them; same problem. I have parentheses with all of my if's, before the braces - I just forgot to include a few here. I haven't checked every () and [], but every {} is accounted for. The rea

Re: [PHP] Disturbing parsing problems

2002-07-29 Thread Analysis & Solutions
On Mon, Jul 29, 2002 at 12:19:50PM -0400, [EMAIL PROTECTED] wrote: > > if (){ > do { > if (){ > while () {} > if () ; > else if (); > else ; > } I don't like one line if statements. Perhaps there's a problem in there. Makes t