Description:
To add more functionality to a function, we can add parameters. A parameter is just like a variable.
Parameters are specified after the function name, inside the parentheses.
Code:
Output:
To add more functionality to a function, we can add parameters. A parameter is just like a variable.
Parameters are specified after the function name, inside the parentheses.
Code:
<?php
function Writename($fname)
{
echo $fname ."refsnes.<br />";
}
writename(" hi ");
echo "my sister's name is ";
writename(" hello ");
echo "my brother's name is ";
writename(" hi world ");
?>
Output:
No comments:
Post a Comment