summaryrefslogtreecommitdiffhomepage
path: root/php.html.markdown
diff options
context:
space:
mode:
authorMalcolm Fell <malcolm@vendhq.com>2013-06-28 08:49:58 +1200
committerMalcolm Fell <malcolm@vendhq.com>2013-06-28 08:49:58 +1200
commit85eee3929a1ccb5225f2e1d826a466e7351bbf39 (patch)
tree99661d7b5265813c0059e14b85605da86e3bc475 /php.html.markdown
parent124273ffbe9ac370b99ca7fecd24d2656552ca9a (diff)
Mention print is a language construct
Diffstat (limited to 'php.html.markdown')
-rw-r--r--php.html.markdown1
1 files changed, 1 insertions, 0 deletions
diff --git a/php.html.markdown b/php.html.markdown
index ce96b457..6dcf7d59 100644
--- a/php.html.markdown
+++ b/php.html.markdown
@@ -97,6 +97,7 @@ $associative["One"]; // Holds the value 1
echo('Hello World!'); // Prints Hello World! to stdout. Stdout is the web page if running in a browser.
print('Hello World!'); // The same as echo
echo 'Hello World!'; // echo is actually a language construct, so you can drop the parentheses.
+print 'Hello World!'; // So is print
echo 100;
echo $variable;
echo function_result(); // Output the result of a function call that returns a value. More on functions later.