I'm just wondering on what happen here:
a.php PHP Code:
class A {
public function A1() {
}
public function A2() {
}
}
b.php PHP Code:
class B {
A1(); // can I do this
A a; // or I have to do this first, and then...
a.A1();
}
Thanx, I'm just wondering on how does Object Oriented work in PHP..?
ADD:
where does b.php have to be? can a.php in the sub folder of where b.php is..? so say here's the structure:
b.php
- folder AScript
----- a.php