- Document print to be a language construct

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@67706 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Derick Rethans 2002-01-13 21:23:51 +00:00
parent 8f53c62aca
commit 400c1b5d1a

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.153 $ -->
<!-- $Revision: 1.154 $ -->
<reference id="ref.strings">
<title>String functions</title>
<titleabbrev>Strings</titleabbrev>
@ -1744,6 +1744,11 @@ echo $second[1]; /* prints "another" */
<simpara>
Outputs <parameter>arg</parameter>. &return.success;
</simpara>
<para>
<function>print</function> is not actually a function (it is a
language construct) so you are not required to use parentheses
with it.
</para>
<example>
<title><function>print</function> examples</title>
<programlisting role="php">
@ -1761,7 +1766,7 @@ print "This spans\nmultiple lines. The newlines will be\noutput as well.";
print "escaping characters is done \"Like this\"."
//You can use variables inside of an print statement
// You can use variables inside of an print statement
$foo = "foobar";
$bar = "barbaz";