Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: print_r

by f00li5h (Chaplain)
on Mar 30, 2009 at 03:28 UTC ( #754060=note: print w/replies, xml ) Need Help??


in reply to print_r

Not that I'd ever use php, but if I had done it for, say, 6 or 7 years, I'd suggest that print_r is the least useful of php's dump-data-struct methods... and that var_export is far more useful...

... perl for var_export is Data::Dumper::Dumper

@_=qw; ask f00li5h to appear and remain for a moment of pretend better than a lifetime;;s;;@_[map hex,split'',B204316D8C2A4516DE];;y/05/os/&print;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://754060]
help
Chatterbox?
and the sunlight beams...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2017-04-24 00:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (433 votes). Check out past polls.