Passing Variables from One Function to Another
| From: | Flint Doungchak | Date: | Wed, 11 Jul 2001 17:54:12 +0000 |
| Subject: | Passing Variables from One Function to Another | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-8261@lists.php.net to get a copy of this message | ||
Hey All,
I'm feeling pretty dumb right now. Is there a way to pass a variable from
one function to another. So for instance, if I have one function that
returns x such as
function boo() {
$foo = 3;
return $foo;
}
And then I have another function and I want to use $foo.
function ahh() {
$foo;
$fum = $foo + $fi;
}
I'm missing something but any help would be nice. Thanks.
-Flint