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 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 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 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.