title: Compare differences in Multidimensional array
body: <p>I have a rather ugly query, and the results from the query are then post-processed using php which turns each row into it's own multidimensional array.</p>
  
  <p>I want to refactor the query but need to make sure I do not change what it returns in any way.</p>
  
  <p>So What I want to do is copy the original query and call that, store the results.
  then run the function again with my new query.</p>
  
  <p>Loop over the two arrays of results and compare them for any differences what so ever (keys, values, missing entries, type differences etc).</p>
  
  <p>What is the easiest way to do this?</p>
  
  <p>Essentially I know how to call the two queries etc,</p>
  
  <p>I guess my real question is, at the end once I have my two arrays of the results how do I go through and compare them.</p>
  
  <p>What I would love to end up with is a side by side "print_r" type output with a red line or similar going across highlighting any differences.</p>