Code: Select all
<?php
function display(){
?>
<p>Hello</p>
<?php
}
display();
?>
why is it that i have to call display() for <p>Hello</p> to be displayed on the screen?
how does it happen? even though the paragraph element is not inside the php tags, it seems that
as if the <p> element is inside scope of the display() function. please tell me about this for me
to understand further. thanks .