What is the difference between include() and calling a function in PHP? For example :
1 -
<?php
$foo = '<p>bar</p>';
return $foo;
?>
<html><body><?php echo $foo; ?></body></html>
2-insert above php code in a php file and include() thanks in advance