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

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

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