Core Function Printr
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> Printr( $variable ) </pre> === Description === Prints all details about a variable in a way thats easy for humans to read it (Will print arrays etc) === Parameters === ...") |
|||
Line 1: | Line 1: | ||
<pre> | <pre> | ||
− | Printr( $variable ) | + | Printr( $variable, <flag> ) |
</pre> | </pre> | ||
Line 12: | Line 12: | ||
A variable to print its content. | A variable to print its content. | ||
+ | |||
+ | ==== <flag> ==== | ||
+ | |||
+ | Optional; Allows you to set your own NewLine splitter such as "<BR>" | ||
=== Return Value === | === Return Value === |
Revision as of 08:24, 23 January 2013
Printr( $variable, <flag> )
Contents |
Description
Prints all details about a variable in a way thats easy for humans to read it (Will print arrays etc)
Parameters
$variable
A variable to print its content.
<flag>
Optional; Allows you to set your own NewLine splitter such as "
"
Return Value
None
Remarks
Alias' for this command
Print_r()
Example
$a = array( 0, 1, 2, 3, "moo" => array("cat", "dog", "moo", "toy" => array("fox", "lol")) ); printr($a);