note 45948 added to function.var-dump

From: Date: Fri, 24 Sep 2004 10:23:00 +0000
Subject: note 45948 added to function.var-dump
Groups: php.notes 
Request: Send a blank email to php-notes+get-77304@lists.php.net to get a copy of this message
This may be of use to some people, a quick function to return the contents of var_dump in a string if you don't want it to print directly to the screen: // Puts var_dump into a string function getVarDump ($variable) { ob_start(); var_dump($variable); $string = ob_get_contents(); ob_end_clean(); return $string; } ---- Manual Page -- http://www.php.net/manual/en/function.var-dump.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+45948 Delete -- http://master.php.net/manage/user-notes.php?action=delete+45948&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+45948&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#77304) next »