phdphd Posted October 4, 2011 Share Posted October 4, 2011 Hi All, There is a very interesting solved topic here (http://www.phpfreaks.com/forums/index.php?topic=304966.0) about how to access elements in embedded _POST array. But before accessing an element, it might be appropriate to check whether the array it is supposed to be in exists. According to the solution given in the topic indicated above, $_POST['matType'] is an example of embedded array . Is there a way to check if this array exists? Thanks in advance for your help. Quote Link to comment https://forums.phpfreaks.com/topic/248437-testing-if-an-embedded-array-exists-in-a-_post/ Share on other sites More sharing options...
requinix Posted October 4, 2011 Share Posted October 4, 2011 According to the solution given in the topic indicated above, $_POST['matType'] is an example of embedded array . Is there a way to check if this array exists? You can check if matType exists, but then you separately need to make sure it's an array. Know that neither does the job of the other so you do need both. Quote Link to comment https://forums.phpfreaks.com/topic/248437-testing-if-an-embedded-array-exists-in-a-_post/#findComment-1275781 Share on other sites More sharing options...
phdphd Posted October 4, 2011 Author Share Posted October 4, 2011 Thanks a lot requinix for your quick and relevant answer ! It works perfect ! You are definitely the strongest Quote Link to comment https://forums.phpfreaks.com/topic/248437-testing-if-an-embedded-array-exists-in-a-_post/#findComment-1275797 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.