I didn't say third example, I said the third line. This:
<?php
function returnHello() {
return "Hello, world!";
}
returnHello();
?>
is the same as this:
<?php
"Hello, world!";
?>
which is the same as this:
<?php
?>
Note that you added an echo statement in your code snippet - this completely defeats the point of the example.