News for hackers. Stuff that matters.
Re:Python's if __name__=="__main__": main() in other languages by damncabbage on Monday August 08, 2011 @08:33AM (#2859808)
PHP: if (realpath($argv[0]) == __FILE__) main();

(Presuming you've gone and defined the main() function somewhere. No module conventions like with Python here.)

There are no comments on this comment yet.