note 43742 modified in function.var-dump by aidan

From: Date: Thu, 08 Jul 2004 00:22:56 +0000
Subject: note 43742 modified in function.var-dump by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-72841@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. <?php 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 --was-- 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 http://php.net/manual/en/function.var-dump.php

« previous php.notes (#72841) next »