Q. Which PHP function is used to get the current script name?
β
Correct Answer: (B)
$_SERVER['PHP_SELF']
Explanation: $_SERVER['PHP_SELF'] returns the filename of the currently executing script.