RE: [PHP] functions
| From: | Jon Haworth | Date: | Fri, 12 Apr 2002 13:32:28 +0000 |
| Subject: | RE: [PHP] functions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-92760@lists.php.net to get a copy of this message | ||
Hi Alia,
> i would like now how can we call a function within another function in
> php?
The same way you'd call it from outside a function :-)
<?php
function hello () {
echo "hello ";
}
function world () {
hello ();
echo "world";
}
hello();
echo "<br>";
world();
?>
...should output
hello
hello world
Cheers
Jon