In PHP you can do:
print_r($var) or vardump($var)
print_r($var)
vardump($var)
which prints \"human-readible\" information about variable.
Is there equ
Try using pp. You will need to require it in scripts (or in irb if your .irbc doesn't already do this):
require 'pp'
Then you can 'PrettyPrint' an object thus:
pp object