Re: Gripe

From: Date: Fri, 29 Aug 2003 21:15:46 +0000
Subject: Re: Gripe
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-161199@lists.php.net to get a copy of this message
--- "John W. Holmes" <holmes072000@charter.net> wrote: > How could the parser possibly know that one was missing as it's going > through the file? It just keeps a count and can only realize something > is wrong when it gets to the end of the file and sees the count is off. I can't see how a human could determine this prior to getting to the end either, unless you assume that the author has properly indented the code. Am I missing something obvious? if ($foo) { if ($bar) echo 'blah'; else { echo 'else'; } Where is the missing brace? :-) Chris ===== Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/

« previous php.general (#161199) next »