JustinK101 Posted June 4, 2011 Share Posted June 4, 2011 I am trying to reference the first element in the $_GET array, but it is being a pest, and saying Undefined offset: 0. Basically, I don't know the key, its dynamic. So: http://www.mydomain.com/mypage.php?dynamickey=somevalue I should be able to reference $_GET[0] correct? Quote Link to comment https://forums.phpfreaks.com/topic/238365-reference-elements-in-_get-by-index/ Share on other sites More sharing options...
trq Posted June 4, 2011 Share Posted June 4, 2011 I should be able to reference $_GET[0] correct? No, there is no 0 index. How exactly can you not know the index? Quote Link to comment https://forums.phpfreaks.com/topic/238365-reference-elements-in-_get-by-index/#findComment-1224993 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.