__functionName?
| From: | Jim Dam | Date: | Sat, 03 Aug 2002 22:31:02 +0000 |
| Subject: | __functionName? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-111006@lists.php.net to get a copy of this message | ||
I know that a function name preceded by 2 underscores (__) has 'magical'
properties when declared in a class. My question is, is it safe to declare
a function with 2 underscores before its name outside of a class? For
example, if this is my whole script.
<?PHP
function __hello () {
echo 'Hello world';
}
__hello;
?>
Is my function safe from having any wierd effects from the double
underscore?
Jim Dam
jim.dam@cogeco.ca