Trying to figure out how to do the equivalent of something I did in javascript but in php. But I'm not sure of the operators to do it. In javascript I wanted to see if a particular parameter being passed was either an object or array.. and if not then was it a string/int and what I did was something like
if (str instanceof Array || str instanceof Object)
{
//code
}
else
{
//code
}
anyone know of the equivalent to this for php?