jcanker Posted February 22, 2010 Share Posted February 22, 2010 I want to be able to destroy any variables that may be passed in the URL as a GET variable. Would unset($_GET) achieve this or would I have to count up the array elements passed in the url and step through them in a for or while loop, destroying them? In short, I need to have a quick and dirty function to call at the start of each page that no matter what any GET variable the user tries to pass in the URL is discarded before the script tries to do anything else. Link to comment https://forums.phpfreaks.com/topic/192878-destroying-_get-array/ Share on other sites More sharing options...
ohdang888 Posted February 22, 2010 Share Posted February 22, 2010 unset($_GET) should work.... but so should $_GET = NULL; Link to comment https://forums.phpfreaks.com/topic/192878-destroying-_get-array/#findComment-1015883 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.