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 reason I refer
to this problem as 'disturbing' is the fact that there are not equal numbers of open
and close braces in *working* code. Regardless of other delimiters, that shouldn't
be, right?
>I don't like one line if statements. Perhaps there's a problem in there.
>Makes things harder to see. I'd write it:
>
> while () {}
> if () {
> } elseif () {
> }else {
> }
>
>Does your code have the () between the if and {?
> }
> // }
> if () {
> if {
>
>Also, your problem could be arising because of some unnoticed (, ), { or }
>in a command between your control statements.
--Dan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php