From 400c1b5d1a4548c4619eae0604a21f97f8d04553 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Sun, 13 Jan 2002 21:23:51 +0000 Subject: [PATCH] - Document print to be a language construct git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@67706 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/strings.xml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/functions/strings.xml b/functions/strings.xml index a71c05d5d3..d4c98e3ca4 100644 --- a/functions/strings.xml +++ b/functions/strings.xml @@ -1,5 +1,5 @@ - + String functions Strings @@ -1744,6 +1744,11 @@ echo $second[1]; /* prints "another" */ Outputs arg. &return.success; + + print is not actually a function (it is a + language construct) so you are not required to use parentheses + with it. + <function>print</function> examples @@ -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";