Determine the type of array element in php
<p>I am calling a function that returns the an array. A for loop iteration gives the following output.</p>

<blockquote>
  <p>string(22) "text/xml;charset=UTF-8" </p>
  
  <p>string(7) "chunked" </p>
  
  <p>string(4) "gzip" </p>
  
  <p>array(2) { ["Expect"]=> string(12) "100-continue" ["Content-Type"]=>
  string(48) "application/x-www-form-urlencoded; charset=utf-8" } </p>
  
  <p>object(CFSimpleXML)#10 (1) { [0]=> string(6) "123456" }</p>
</blockquote>

<p>How can i check whether an array element is an object or string ?</p>
