Re: Variables inside a function
| From: | Jason Wong | Date: | Mon, 08 Mar 2004 17:48:39 +0000 |
| Subject: | Re: Variables inside a function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-179805@lists.php.net to get a copy of this message | ||
On Tuesday 09 March 2004 01:44, Alex Hogan wrote:
> Don't you need to set a return?
>
> Return $blah;
>
> At the bottom of your function block.
That does not make the variable $blah available elsewhere in the program. The
OP should take a look at manual > Variables > Variable scope.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Remembering is for those who have forgotten.
-- Chinese proverb
*/