DEV Community

PHP function

Saharan-sub on March 03, 2021

I am currently learning PHP, so I am just playing around with it. I got to function and decided to write this on my own. I want to take input from ...
Collapse
 
hugosantiagobecerraadan profile image
Hugo S. Becerra Adán
function myName($name, $age)
{
    echo  "My is " . $name . ", and I am " . $age . " years old.";
}
myName ($_POST["name"], $_POST["age"]);
Enter fullscreen mode Exit fullscreen mode