note 23687 added to function.include
| From: | max at love2party dot net | Date: | Wed, 24 Jul 2002 23:51:05 +0000 |
| Subject: | note 23687 added to function.include | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-33530@lists.php.net to get a copy of this message | ||
Note that functions declared after a return, will still be declared in your main file. Hence:
if(!($admin)) {
return;
}
function admin_only_function () {
// do something
}
will *not* prevent users from useing "admin_only_function()" after includeing the above
code.
--
http://www.php.net/manual/en/function.include.php
http://master.php.net/manage/user-notes.php?action=edit+23687
http://master.php.net/manage/user-notes.php?action=delete+23687
http://master.php.net/manage/user-notes.php?action=reject+23687