Re: [PHP] Scope of the variables around PHP class

2008-09-23 Thread clive
Define a class function and pass the array via this function or pass it via the classes constructor. VamVan wrote: 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

[PHP] Scope of the variables around PHP class

2008-09-22 Thread VamVan
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

Re: [PHP] Scope of the variables around PHP class

2008-09-22 Thread Chris
VamVan wrote: 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. You