harvest Posted November 22, 2012 Share Posted November 22, 2012 (edited) Hi, I have something like this <? if(isset($_REQUEST['groupid'])){ $vesti = Vesti_Manager::getVesti($_SESSION['language_id'],array($_REQUEST['groupid'])); } else { $vesti = Vesti_Manager::getVesti($_SESSION['language_id']); } ?> and i want list only if ['groupid'] is in array (1,2,3,4,5,6,7,8 ) Thanks. Edited November 22, 2012 by harvest Quote Link to comment https://forums.phpfreaks.com/topic/271055-php-check-if-_request-array-contains-value/ Share on other sites More sharing options...
Christian F. Posted November 22, 2012 Share Posted November 22, 2012 Tried in_array ()? Quote Link to comment https://forums.phpfreaks.com/topic/271055-php-check-if-_request-array-contains-value/#findComment-1394541 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.