when i call function inside html tags it fails in wamp but executes fine in xampp

<?php
admin_check(); //this works in wamp and xamp
?>
<html>
<div>
<?php
admin_check(); //this fails in wamp but works in xammp
?>
</div>
</html>

whats the reason?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.