RE: [PHP] nested if parse error
| From: | Cal Evans | Date: | Thu, 30 May 2002 13:50:46 +0000 |
| Subject: | RE: [PHP] nested if parse error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-99908@lists.php.net to get a copy of this message | ||
if (1){
if (1) {echo "hello";}
} else { }
?>
*
* Cal Evans
* Journeyman Programmer
* Techno-Mage
* http://www.calevans.com
*
-----Original Message-----
From: Miroslav Figlar [mailto:mfiglar@genesispo.sk]
Sent: Thursday, May 30, 2002 7:05 AM
To: php-general@lists.php.net
Subject: [PHP] nested if parse error
could somebody explain me please what is wrong with this piece of code?
<?
if (1):
if (1) echo "hello";
else:
endif;
?>
it gives me parse error on line 4
this works fine (no parse error):
<?
if (1):
else:
if (1) echo "hello";
endif;
?>
thank you
miro
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php