Is there a pretty print for PHP?
        Posted  
        
            by Aaron Lee
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Aaron Lee
        
        
        
        Published on 2009-07-22T20:52:41Z
        Indexed on 
            2010/04/27
            7:03 UTC
        
        
        Read the original article
        Hit count: 373
        
php
|pretty-print
I'm fixing some PHP scripts and I'm missing ruby's pretty printer. i.e.
require 'pp'
arr = {:one => 1}
pp arr
will output {:one => 1}. This even works with fairly complex objects and makes digging into an unknown script much easier. Is there some way to duplicate this functionality in PHP?
© Stack Overflow or respective owner