Jump to content

Class in class

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
pino

pino

    Newbie

  • Members
  • Pip
  • 4 posts
Is it posible to implement (to use) one php class in other class? I can't find any example about this thing.

Maybe some kind of reference to other class?

#2
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
You mean something like this? PHP: Autoloading Objects - Manual

#3
pino

pino

    Newbie

  • Members
  • Pip
  • 4 posts
I solve my problem. And I see that I can use classes like this.

class Book

{

function GetBook()

{

...some code...

$author = new Author();

...some code...

}

}