Hyvor Developer
  Home   Download   Copy
Code
<?php
$user = 'admin';
?>

<?php if ($user === 'admin') : ?>

<p>You are an admin.</p>
<p>You can access the console.</p>

<?php elseif ($user === 'developer') : ?>

<p>You are a developer.</p>
<p>You can access the developer console</p>

<?php else : ?>

<p>You are a normal user.</p>

<?php endif; ?>
Result