Scope of the variables around PHP class
| From: | VamVan | Date: | Mon, 22 Sep 2008 20:12:40 +0000 |
| Subject: | Scope of the variables around PHP class | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-280724@lists.php.net to get a copy of this message | ||
Hello Guys,
I have a problem here. I hope you can help me resolving it.
Please see the code below
array.php has $array1 = ('hello'=>'heelo',)
require_once('array.php');
class Classa {
}
How can I access the array values in my class? I want to understand the
scope.
Thanks