PHP has a var_dump() function which outputs the internal contents of an object, showing an object\'s type and content.
For example:
I found this method to dump object, try this String dump(Object object)