note 95727 added to functions.user-defined

From: Date: Mon, 18 Jan 2010 21:30:30 +0000
Subject: note 95727 added to functions.user-defined
Groups: php.notes 
Request: Send a blank email to php-notes+get-165089@lists.php.net to get a copy of this message
Note that in example #3 above you cannot call foo() again after the first time as the error "Fatal error: Cannot redeclare bar() (previously declared in test.php:10) in test.php on line 10" will result, which really calls into question the idea of having functions within functions since there is no local scope for these, as stated above. ---- Server IP: 69.147.83.197 Probable Submitter: 84.160.65.245 ---- Manual Page -- http://www.php.net/manual/en/functions.user-defined.php Edit -- https://master.php.net/note/edit/95727 Del: integrated -- https://master.php.net/note/delete/95727/integrated Del: useless -- https://master.php.net/note/delete/95727/useless Del: bad code -- https://master.php.net/note/delete/95727/bad+code Del: spam -- https://master.php.net/note/delete/95727/spam Del: non-english -- https://master.php.net/note/delete/95727/non-english Del: in docs -- https://master.php.net/note/delete/95727/in+docs Del: other reasons-- https://master.php.net/note/delete/95727 Reject -- https://master.php.net/note/reject/95727 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#165089) next »