note 112515 added to function.return

From: Date: Tue, 25 Jun 2013 20:11:57 +0000
Subject: note 112515 added to function.return
Groups: php.notes 
Request: Send a blank email to php-notes+get-195346@lists.php.net to get a copy of this message
Note that because PHP processes the file before running it, any functions defined in an included file will still be available, even if the file is not fully executed. Example: a.php <?php include 'b.php'; foo(); ?> b.php <?php return; function foo() { echo 'foo'; } ?> Executing a.php will output "foo". ---- Server IP: 69.147.83.199 Probable Submitter: 207.53.193.42 ---- Manual Page -- http://php.net/manual/en/function.return.php Edit -- https://master.php.net/note/edit/112515 Del: integrated -- https://master.php.net/note/delete/112515/integrated Del: useless -- https://master.php.net/note/delete/112515/useless Del: bad code -- https://master.php.net/note/delete/112515/bad+code Del: spam -- https://master.php.net/note/delete/112515/spam Del: non-english -- https://master.php.net/note/delete/112515/non-english Del: in docs -- https://master.php.net/note/delete/112515/in+docs Del: other reasons-- https://master.php.net/note/delete/112515 Reject -- https://master.php.net/note/reject/112515 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#195346) next »