I have a rather ugly query, and the query results are then post-processed using php, which turns each row into its own multidimensional array.
I want to reorganize the request, but I have to make sure that I do not change what it returns in any way.
So what I want to do is copy the original query and call it, save the results. then run the function again with my new request.
Scroll through the two arrays of results and compare them for any differences that are always the case (keys, values, missing entries, type differences, etc.).
What is the easiest way to do this?
Essentially, I know how to call two queries, etc.,
I think my real question is: at the end, when I have two of my arrays of results, how do I go about and compare them.
What I would like to finish is a result of type "print_r", located next to each other with a red line or similar, highlighting any differences.
source share