note 41010 added to function.var-dump

From: Date: Fri, 26 Mar 2004 13:18:45 +0000
Subject: note 41010 added to function.var-dump
Groups: php.notes 
Request: Send a blank email to php-notes+get-67194@lists.php.net to get a copy of this message
As you know this function nicley indents array dumps, but browsers ignore this, so you have to view the source... so to see the nice formatting without looking at the source use an echo before and after, as follows: <?php $thearray = Array("this" => "that", "do", Array("one","two","t")) echo "<PRE>\\n"; var_dump($thearray); echo "</PRE>"; ?> Makes my debugging a lot easier :) ---- Manual Page -- http://www.php.net/manual/en/function.var-dump.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+41010 Delete -- http://master.php.net/manage/user-notes.php?action=delete+41010&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+41010&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#67194) next »