Skip to content

Instantly share code, notes, and snippets.

View ramakrishnaj's full-sized avatar
🏠
Working from home

Ramakrishna ramakrishnaj

🏠
Working from home
View GitHub Profile
@ramakrishnaj
ramakrishnaj / test work
Last active January 2, 2017 05:57
test work
<?php
/**
* Instructions:
* Write a solution in PHP:
*
* How your implementation works:
* Your function will take two arguments, ($prevArray, $currArray), flattens the objects inside of prevArray and currArray to 1 level of
* depth, and return an HTML Table in string form of the values. The HTML table you return has a column header which is a superset of all keys in
* all the objects in the currArray. Any values that have changed from the prevArray to the currArray (ie field value changed or is a