Core Function VarDump

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(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 ...")
 
m (1 revision)
 
(2 intermediate revisions by one user not shown)
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 ===

Latest revision as of 12:37, 14 June 2015

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);
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox