Echoing a function that echoes something and returns nothing in PHP

<?php
function print_name()
{
    echo 'Name';
}

echo 'Hello'.print_name().' World.';

/* Output:
Name
Hello World
*/
?>

Comments

Popular posts from this blog

Timestamps in PHP