Core Function VarDump
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> Printr( $variable, <newline> , <flag> ) </pre> === Description === This function displays structured information about one or more expressions that includes its type and ...") |
(→) |
||
Line 15: | Line 15: | ||
==== <newline> ==== | ==== <newline> ==== | ||
− | Optional; Allows you to set your own NewLine splitter such as "<BR>" | + | Optional; Allows you to set your own NewLine splitter such as "< BR >" |
=== Return Value === | === Return Value === |
Revision as of 13:26, 9 August 2013
Printr( $variable, <newline> , <flag> )
Contents |
Description
This function displays structured information about one or more expressions that includes its type and value. Arrays and objects are explored recursively with values indented to show structure.
Parameters
$variable
A variable to to dump information about.
<newline>
Optional; Allows you to set your own NewLine splitter such as "< BR >"
Return Value
None
Remarks
None
Example
$arr = array( 0, 1, 2, 3, "moo" => array("cat", "dog", "moo", "toy" => array("fox", "lol")) ); my $details = VarDump($arr); println($details);