didou           Fri Jul 25 18:11:41 2003 EDT

  Modified files:              
    /phpdoc/en/reference/strings/functions      print.xml 
  Log:
  {}'s example too. adding para
  
Index: phpdoc/en/reference/strings/functions/print.xml
diff -u phpdoc/en/reference/strings/functions/print.xml:1.11 
phpdoc/en/reference/strings/functions/print.xml:1.12
--- phpdoc/en/reference/strings/functions/print.xml:1.11        Mon Jun 23 09:55:42 
2003
+++ phpdoc/en/reference/strings/functions/print.xml     Fri Jul 25 18:11:41 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.11 $ -->
+<!-- $Revision: 1.12 $ -->
 <!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 -->
   <refentry id="function.print">
    <refnamediv>
@@ -21,9 +21,10 @@
      language construct) so you are not required to use parentheses
      with its argument list. 
     </para>
-    <example>
-     <title><function>print</function> examples</title>
-     <programlisting role="php">
+    <para>
+     <example>
+      <title><function>print</function> examples</title>
+      <programlisting role="php">
 <![CDATA[
 <?php
 print("Hello World");
@@ -44,6 +45,11 @@
 
 print "foo is $foo"; // foo is foobar
 
+// You can also use arrays
+$bar = array("value" => "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 @@
 ]]>
       </programlisting>
      </example>
+    </para>
     <simpara>
      For a short discussion about the differences between 
      <function>print</function> and <function>echo</function>, see this FAQTs



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to