note 24221 added to tutorial.useful

From: Date: Fri, 09 Aug 2002 19:31:01 +0000
Subject: note 24221 added to tutorial.useful
Groups: php.notes 
Request: Send a blank email to php-notes+get-34621@lists.php.net to get a copy of this message
It wasn't immediately obvious to me what would happen if I jumped from PHP to HTML and back within a function definition. But of course it does the "right thing": <? function foo () { echo "Enter foo..."; ?>Some HTML inside foo...<? echo "Leave foo."; } ?> <HTML><BODY> <? foo(); ?> </BODY></HTML> produces: Enter foo...Some HTML inside foo...Leave foo. -- http://www.php.net/manual/en/tutorial.useful.php http://master.php.net/manage/user-notes.php?action=edit+24221 http://master.php.net/manage/user-notes.php?action=delete+24221 http://master.php.net/manage/user-notes.php?action=reject+24221

« previous php.notes (#34621) next »