summaryrefslogtreecommitdiffhomepage
path: root/php.html.markdown
diff options
context:
space:
mode:
authorAfaq <afaq05@gmail.com>2013-08-25 11:43:07 -0400
committerAfaq <afaq05@gmail.com>2013-08-25 11:43:07 -0400
commitef0601bab5c3f7f57e584594fc34da87cf8cce9c (patch)
treef6a02ff5135eaf1413b96ea1ec8732e0dc2a1665 /php.html.markdown
parent598fe61e1a9968eb633d97ef214b01c7d3f0d942 (diff)
Updated PHP doc to include print_r() and var_dump()
Diffstat (limited to 'php.html.markdown')
-rw-r--r--php.html.markdown5
1 files changed, 5 insertions, 0 deletions
diff --git a/php.html.markdown b/php.html.markdown
index 083574ee..1a07777a 100644
--- a/php.html.markdown
+++ b/php.html.markdown
@@ -176,6 +176,11 @@ $y = 0;
echo $x; // => 2
echo $z; // => 0
+// Dumps type and value of variable to stdout
+var_dumb($z); // prints int(3)
+
+// Prints variable to stdout in human-readable format
+print_r($array); // prints: Array ( [0] => One [1] => Two [2] => Three )
/********************************
* Logic