note 52670 added to function.var-dump
| From: | ChristianRiesen at osu1 dot php dot net | Date: | Mon, 09 May 2005 09:41:23 +0000 |
| Subject: | note 52670 added to function.var-dump | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-89151@lists.php.net to get a copy of this message | ||
There is a small quirk in it, obviously it first does the var_dump if its in the same line with
other commands.
Example:
<?php
$array = array(1,2,3);
// Does not work? Shows first the var_dump, then <pre>
echo "<pre>" . var_dump($array);
// Works perfectly as intended
echo "<pre>";
echo var_dump($array);
?>
Also, output control is not the best way to catch the output, instead, using
$output = var_export($variable,TRUE);
fills the $output variable with just the same. See the var_export() documentation for details.
----
Manual Page -- http://www.php.net/manual/en/function.var-dump.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52670
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52670&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52670&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52670&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52670&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52670&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52670&report=yes
Search -- http://master.php.net/manage/user-notes.php