note 90130 added to function.print-r

From: Date: Tue, 07 Apr 2009 17:07:25 +0000
Subject: note 90130 added to function.print-r
Groups: php.notes 
Request: Send a blank email to php-notes+get-152912@lists.php.net to get a copy of this message
@sebasg37 at gmail dot com. You can do it easier using this method: <?php $output = print_r($some_array, true); ?> I also like to add the following function somewhere globally accessible during development: <?php function print_r2($v){ echo '<pre>' . print_r($v, true) . '</pre>'; } ?> This gives a quick way to output readable arrays without additional typing every time. ---- Server IP: 66.207.199.35 Probable Submitter: 142.55.244.231 ---- Manual Page -- http://www.php.net/manual/en/function.print-r.php Edit -- https://master.php.net/note/edit/90130 Del: integrated -- https://master.php.net/note/delete/90130/integrated Del: useless -- https://master.php.net/note/delete/90130/useless Del: bad code -- https://master.php.net/note/delete/90130/bad+code Del: spam -- https://master.php.net/note/delete/90130/spam Del: non-english -- https://master.php.net/note/delete/90130/non-english Del: in docs -- https://master.php.net/note/delete/90130/in+docs Del: other reasons-- https://master.php.net/note/delete/90130 Reject -- https://master.php.net/note/reject/90130 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#152912) next »