note 42917 deleted from function.var-dump by aidan

From: Date: Thu, 08 Jul 2004 00:23:41 +0000
Subject: note 42917 deleted from function.var-dump by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-72843@lists.php.net to get a copy of this message
Note Submitter: ashmodai@mushroom-cloud.com ---- 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).

« previous php.notes (#72843) next »