Strict Standards: Only variables should be passed by reference in on line 3

the code on line 3 is as below

$sname = end(explode("/",$_SERVER['SCRIPT_NAME']));

Please some can help to edit the script