mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-22 21:52:31 +03:00
Mention print is a language construct
This commit is contained in:
parent
124273ffbe
commit
85eee3929a
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user