mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
- 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:
parent
8f53c62aca
commit
400c1b5d1a
1 changed files with 7 additions and 2 deletions
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in a new issue