title: php is variable an array or object
body: <p>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</p>
  
  <pre><code>if (str instanceof Array || str instanceof Object) 
  {
     //code
  }
  else
  {
     //code
  }
  </code></pre>
  
  <p>anyone know of the equivalent to this for php?</p>