Since you are coming from a template approach, I'd assume you'd like to have a clean implementation that a designer would be able to understand (being one of the principle reasons for templates--besides the need to separate your presentation and business logic.) You can use a little type juggling to convert your arrays to objects. For example, the following code will return 1 (or true) :
$USERCAN = array(
'viewuserlist'=>1,
'drink_lemonade'=>0
);
$myusercan = (object) $USERCAN;
echo $myusercan->viewuserlist;
Now, if I'm a novice coder or designer, I would be able to understand code better like this:
<?php if ($myusercan->viewuserlist):?>
<a href=<?=$mysite->urlusers?>/userlist.php">View Memberlist</a><br /><br /><br />
<b>User Links</b><br />
<a href="<?=$mysite->urlusers?>/logout.php">Logout</a><br />
<?php endif; ?>
Now, I have heard ppl say crap like, "Real coders only need notepad for html." etc. I have been in this business long enough to state with total confidence, "Real designers, who are employed, who actually know how to do graphic design, who have real deadlines, and web pages that don't look like total crap, use wysiwyg editors." Be nice to them, they have work to do just like you. I used to put my entire page in the same php tags (php printed all the html!) when I was a novice php developer. When some trivial markup needs to be added to a webpage, guess who they come looking for...You! Producing a significant amount of html code in the buffer via PHP is minimal performance gain for maximum cost. Just doesn't make sense unless your a one-man shop!