So I have an in_array check, called
if (in_array('pageLevel',$userlevels))
Which I want to connect to a boolean, like $hasAccess so I can apply
if ($hasAccess == true) { do something }
I tried if (in_array('pageLevel',$userlevels)) { $hasAccess == true }
but that does not seem to work. Can anyone tell me how to use this?