Calling a function inside another function in PHP

<?php
function name()
{
    return 'Rangan Roy';
}

function show_name()
{
    echo name();
}

show_name(); // output: Rangan Roy
?>

Comments

Popular posts from this blog

Timus 1209. 1, 10, 100, 1000... accepted solution in C

Timus Problem 1086. Cryptography Accepted Solution in C

Timus 1083. Factorials!!! Accepted Solution in C