Is there any php tags for managing user level?

Hi, i know that i can use [level-type] to filter the content, but what if i want to use it on my template? for example <?php if(membership('level-type') { ?>
// some content
<?php } ?>

Thanks.