How to Check Whether an Object is a Date
How to Compare Two JavaScrpt Arrays
You can either loop through the arrays or convert them to string and then compare. This tutorial provides several fast methods of comparing two arrays.
How to Convert a PHP Object to an Associative Array
If you want to get a proper explanation of how to convert a PHP object to an associative array, you are in the right place. Just follow the examples.