PHP Array key strings without quotation marks
问题 I am moving the files to the server and is using variables like $_GET[mode] without ''(single quotes) in 'mode'. It works perfectly locally but on the server i am getting notices.. How can i overcome this?here is my phpinfo file phpinfo Is there any way we can have same behavior to work on server as well? 回答1: How can you overcome the E_NOTICE s that complain that you forgot quotes around your strings? Add quotes around your strings. $_GET['mode'] Also it sounds like the error_reporting level