@bokehMay 24.2007 — #What are you thinking using global variables inside a class. A class should be portable, not tied in any way to a procedural script.
@php_hazard_01authorMay 25.2007 — #i know this sounds a little of the proper coding practice, but how do you call a variable from inside another a class.....
hehe...?
from the new foo1,
$foo1->class->var_from_foo2 is called from class foo3;
@NogDogMay 25.2007 — #Without really understanding what you are trying to accomplish, I'm not sure what the correct answer is. Your basic choices are:
1. Instantiate an object of the 2nd class within the first (as per my previous example).
2. Pass an already instantiated object as a parameter to one of the class's methods (including its constructor).
3. Inherit the property from one class into another via the [b]extends[/b] keyword.
To say which is the best way (or another way that I haven't thought of right now, is something I cannot say without understanding why you want to do it.