PHP complex check between different arrays -


my goal decide if $icurrentmembershipid can access $acurrentmenu array based on: if $icurrentmembershipid in $arescrictaccess array.

if(is_array($arescrictaccess)){    // not sure } 

ultimately, need deny access page if users $icurrentmembershipid in $arescrictaccess array.

if(is_array($arestrictaccess)){     if(in_array($icurrentmembershipid, $arestricaccess) === false){         /* display $acurrentmenu */     } } 

Comments

Popular posts from this blog

c++ - Compiling static TagLib 1.6.3 libraries for Windows -

php - How can I merge Nodes & Webform Submissions into instances of one general Content Type in Drupal 6? -

xslt - Umbraco and EXSLT sets do not work -