echo $currentScriptFileName = basename($_SERVER['PHP_SELF']); // My Output : main.php
echo $currentScriptFileName = echo basename(__FILE__); // My Output : main.php
Tutorials focused on Web Development, ReactJS, JavaScript, PHP, Database Design, Devops
echo $currentScriptFileName = basename($_SERVER['PHP_SELF']); // My Output : main.php
echo $currentScriptFileName = echo basename(__FILE__); // My Output : main.php