Re: __functionName?

From: Date: Mon, 05 Aug 2002 06:56:36 +0000
Subject: Re: __functionName?
Groups: php.general 
Request: Send a blank email to php-general+get-111168@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? Almost for sure that's safe... Check the "rules" for a function name to be sure that an initial alphabetic isn't required in the specification. http://php.net/manual/ -- Like Music? http://l-i-e.com/artists.htm I'm looking for a PRO QUALITY two-input sound card supported by Linux (any major distro). Need to record live events (mixed already) to stereo CD-quality. Soundcard Recommendations? Software to handle the recording? Don't need fancy mixer stuff. Zero (0) post-production time. Just raw PCM/WAV/AIFF 16+ bit, 44.1KHz, Stereo audio-to-disk.

« previous php.general (#111168) next »