What is the best way to determine if something is an array or object in PHP? I get a response from a web service, and it is either an array or an object depending on the number of results returned. It is impossible to predict in advance how much will be, so I need to figure out how to handle it correctly. What is the best way to do this?
TIA.
benjy source
share