I'm building a menusystem where several restrictions is part of the array read from file.
Say I got an array $restricts which contains different constrictions like this:
$restrict[0][0]=is_loggedin()==1
$restrict[0][1]=is_locked()==0
$restrict[1][0]=is_loggedin()==0
What I want do do is simply this:
if ($restrict[0][0] && $restrict[0][1]) return true;
Now this doesn't work, and I can't figure out why. I tried using the eval() function, but I always get parse_errors on them.
Anyone able to help me out?