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