note 43742 added to function.var-dump

From: Date: Thu, 01 Jul 2004 20:31:21 +0000
Subject: note 43742 added to function.var-dump
Groups: php.notes 
Request: Send a blank email to php-notes+get-72283@lists.php.net to get a copy of this message
I include a v_dump function in all my projects to make the <pre></pre> easier. function v_dump($var, $exit = false) { print '<pre>'; var_dump($var); print '</pre>'; if (true == $exit) { exit; } } Then displaying variable is as easy as a simple function call, reducing three lines of code to one each time I want information about a variable. Jason ---- Manual Page -- http://www.php.net/manual/en/function.var-dump.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43742 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43742&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43742&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#72283) next »