Stefan83 Posted January 14, 2014 Share Posted January 14, 2014 Hi - How do I convert the following to an array? if( (isset($_GET['full']) && $_GET['full'] == 1) || (isset($_GET['fromApp']) && $_GET['fromApp'] == 1) || (isset($_GET['fromQB']) && $_GET['fromQB'] == 1) || (isset($_GET['fromAW']) && $_GET['fromAW'] == 1) || (is_page_template('dec13.php')) || (false !== strpos($url,'hire'))) { } else { } Quote Link to comment https://forums.phpfreaks.com/topic/285352-convert-to-array/ Share on other sites More sharing options...
jazzman1 Posted January 14, 2014 Share Posted January 14, 2014 GET and POST variables are associative arrays of variables passed to the current script via the URL and HTTP POST method. Maybe you want to create an array contains key/value of these vars and then to compare their keys/values? Could you be more specific, please? Quote Link to comment https://forums.phpfreaks.com/topic/285352-convert-to-array/#findComment-1465167 Share on other sites More sharing options...
Ch0cu3r Posted January 14, 2014 Share Posted January 14, 2014 I do not see how you can convert multiple conditions into an array. Can you explain what you are wanting to do. Quote Link to comment https://forums.phpfreaks.com/topic/285352-convert-to-array/#findComment-1465168 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.