note 42917 added to function.var-dump

From: Date: Thu, 03 Jun 2004 15:23:07 +0000
Subject: note 42917 added to function.var-dump
Groups: php.notes 
Request: Send a blank email to php-notes+get-70724@lists.php.net to get a copy of this message
In reply to mrdraz at hotmail dot com: An easier way to do fix the indenting is to send the output as plain text: <?php header('Content-type: text/plain'); $foo = array(1 => 'one', 'two', 5 => 'five'); var_dump($foo); ?> Of course this doesn't work if you really desire HTML output. It's good enough for testing and debugging purposes tho (especially because you'd run into problems if any variables or keys contained lesser-than or greater-than characters, or if you're dealing with XHTML, ampersands). ---- Manual Page -- http://www.php.net/manual/en/function.var-dump.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+42917 Delete -- http://master.php.net/manage/user-notes.php?action=delete+42917&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+42917&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#70724) next »