Reply to figure out members of an object?

Your name:

Reply:


Posted by www.douglassdavis.com on 10/03/05 03:12

Say I am retrieving an object from a function...

The object really has no distinguishable type as far as my code can
tell (It's from a SOAP function, the objects returned do not have
different types).

$client = new SoapClient("/geocoder.wsdl");

// Retrieve the address coordinates
$result = $client->geocode($address);

Now, there could be two "types" of objects returned, with two distinct
sets of members.

say one type has a member "prefix" and one has a member "prefix1"

my question is, how can I figure out which type the function has
returned? I don't think I can do isset( ) to test if a member exists.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация