note 116930 added to function.print-r

From: Date: Mon, 23 Mar 2015 11:12:49 +0000
Subject: note 116930 added to function.print-r
Groups: php.notes 
Request: Send a blank email to php-notes+get-202012@lists.php.net to get a copy of this message
A useful thing that I have found to make the variable even more readable (when using an array in print_r) is this: <?php function print_a(array $array) { foreach ($array as $p) { print_r($p); echo "<br>"; } } ?> Makes it that bit more readable. Hope it helps someone out :) ---- Server IP: 72.52.91.14 Probable Submitter: 213.235.62.143 ---- Manual Page -- http://php.net/manual/en/function.print-r.php Edit -- https://master.php.net/note/edit/116930 Del: integrated -- https://master.php.net/note/delete/116930/integrated Del: useless -- https://master.php.net/note/delete/116930/useless Del: bad code -- https://master.php.net/note/delete/116930/bad+code Del: spam -- https://master.php.net/note/delete/116930/spam Del: non-english -- https://master.php.net/note/delete/116930/non-english Del: in docs -- https://master.php.net/note/delete/116930/in+docs Del: other reasons-- https://master.php.net/note/delete/116930 Reject -- https://master.php.net/note/reject/116930 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#202012) next »