From 907be834ac04bfe27c9443a77b064e1d81ba763a Mon Sep 17 00:00:00 2001 From: Mehdi Achour Date: Fri, 25 Jul 2003 22:11:41 +0000 Subject: [PATCH] {}'s example too. adding para git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@135979 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/print.xml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/reference/strings/functions/print.xml b/reference/strings/functions/print.xml index 03e93667a4..06f30add6a 100644 --- a/reference/strings/functions/print.xml +++ b/reference/strings/functions/print.xml @@ -1,5 +1,5 @@ - + @@ -21,9 +21,10 @@ language construct) so you are not required to use parentheses with its argument list. - - <function>print</function> examples - + + + <function>print</function> examples + "foo"); + +print "this is {$bar['value']} !"; // this is foo ! + // Using single quotes will print the variable name, not the value print 'foo is $foo'; // foo is $foo @@ -60,6 +66,7 @@ END; ]]> + For a short discussion about the differences between print and echo, see this FAQTs