On Thursday 27 March 2003 02:04, Liam Gibbs wrote:
> > I'll guess that you're trying to access $frequency outside of the
> > function, after you've called it, right? If so, read up on variable
> > scope in the manual.
>
> No, I'm trying to access it inside the function. This is what I have (or an
> example, since I don't have it right in front of me right now):
>
> function func($a = 1, $b = 2) {
> print("[$a]");
> }
>
> From the above example, I get [] as output.
This works as expected:
function func($a = 1, $b = 2) {
print("[$a]");
}
func(); // prints: [1]
--
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
------------------------------------------
/*
Insufficient facts always invite danger.
-- Spock, "Space Seed", stardate 3141.9
*/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php