3 ms·
PHP: if (realpath($argv[0]) == __FILE__) main(); (Presuming you've gone and defined the main() function somewhere. No module conventions like with Python here.
by damncabbage 15y ago
PHP: if (realpath($argv[0]) == __FILE__) main();
(Presuming you've gone and defined the main() function somewhere. No module conventions like with Python here.)