Re: [PHP4BETA] class name

[email protected] (Andrei Zmievski)
Newsgroups php.version4
Message-ID <[email protected]>
On Thu, 25 May 2000, Dariusz Malinowski wrote:
> hi there guru guys :)
> 
>     i'm quite new with php (4) andi  have such a problem:
> 
> - can i get a class name (or even an object name) from instance variable
> ? (or maybe something like $this->class_name ??)
> 
>   i searched the documentation on www.php.net web site and i didn't find
> anything interesting about classes (maybe u know any other source of
> good docs.?)

Use get_class($my_object).

-Andrei

'Any given program, when running correctly, is obsolete.'
  - First Law of Computer Programming
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.