note 115222 added to function.print-r

From: Date: Mon, 16 Jun 2014 17:25:02 +0000
Subject: note 115222 added to function.print-r
Groups: php.notes 
Request: Send a blank email to php-notes+get-199689@lists.php.net to get a copy of this message
print_r is pretty useless, it doesn't do anything well. It's format is ugly enough you really don't want to use it to output arrays to users in your UX. Becuase of the type juggling, it's absolutely horrible for debugging as well. var_export and var_dump are certainly better choices for that. ---- Server IP: 216.194.115.244 Probable Submitter: 206.221.159.4 ---- Manual Page -- http://php.net/manual/en/function.print-r.php Edit -- https://master.php.net/note/edit/115222 Del: integrated -- https://master.php.net/note/delete/115222/integrated Del: useless -- https://master.php.net/note/delete/115222/useless Del: bad code -- https://master.php.net/note/delete/115222/bad+code Del: spam -- https://master.php.net/note/delete/115222/spam Del: non-english -- https://master.php.net/note/delete/115222/non-english Del: in docs -- https://master.php.net/note/delete/115222/in+docs Del: other reasons-- https://master.php.net/note/delete/115222 Reject -- https://master.php.net/note/reject/115222 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#199689) next »