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,
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
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
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
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 closed, and wants to hear about the while part.
I chec
5 matches
Mail list logo