harvest Posted November 22, 2012 Share Posted November 22, 2012 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. 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 ()? 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
Archived
This topic is now archived and is closed to further replies.