Re: Default setting garbage
| From: | Liam Gibbs | Date: | Wed, 26 Mar 2003 18:04:05 +0000 |
| Subject: | Re: Default setting garbage | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-141090@lists.php.net to get a copy of this message | ||
> 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.