PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
destiny_cores
Forum Newbie
Posts: 8 Joined: Fri Mar 17, 2006 9:05 am
Post
by destiny_cores » Fri Mar 17, 2006 9:43 am
I have ClassA in ClassA.php and I create new class is ClassB.php. If I want import ClassA to use in ClassB.php. How I should coding?
Thank you
destiny_cores
Forum Newbie
Posts: 8 Joined: Fri Mar 17, 2006 9:05 am
Post
by destiny_cores » Fri Mar 17, 2006 10:15 am
But class A not relate class B. I want some method from Class A to get value. Who can help me? please...
Thanks you
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Fri Mar 17, 2006 10:25 am
create an instance of class a in class b.