I need to make following in one line, i am looking for method of making similar code one line not to solve this particular example.
$file_path = pathinfo($_SERVER["SCRIPT_NAME"]);
$file_name = $file_path["filename"];
e.g.
$file_name = pathinfo($_SERVER["SCRIPT_NAME"])["filename"];