Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question: how to identify an object??

Status
Not open for further replies.

PhotonTopedo

Programmer
Joined
Jun 18, 2003
Messages
3
Location
US
Hi, everyone..The question is:

I try to identify an variable($client). It could be:
a) Of the type of object that I need.
b) Of some other type of data that i don't need.

So, I have to identify the type of ($client). More specificlly, I need to know the class that $client comes from if ($client) is some object. Is there any function that can be used for this purpose?



 
It's an odd question - at least to me. Why would it not be clear from the code where it comes from?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top