This is because, on your local server, PHP may be set up to provide a more verbose output, while on the live server, it is not.
Consider using print_r()
or var_dump()
to handle complex objects, as echo
and print
are not designed for that purpose.