didou           Fri Jul 25 17:03:47 2003 EDT

  Modified files:              
    /phpdoc/en/reference/strings/functions      echo.xml 
  Log:
  {}'s example
  
Index: phpdoc/en/reference/strings/functions/echo.xml
diff -u phpdoc/en/reference/strings/functions/echo.xml:1.11 
phpdoc/en/reference/strings/functions/echo.xml:1.12
--- phpdoc/en/reference/strings/functions/echo.xml:1.11 Mon Jun 16 06:44:57 2003
+++ phpdoc/en/reference/strings/functions/echo.xml      Fri Jul 25 17:03:47 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.echo">
    <refnamediv>
@@ -38,11 +38,16 @@
 
 echo "Escaping characters is done \"Like this\".";
 
-//You can use variables inside of an echo statement
+// You can use variables inside of an echo statement
 $foo = "foobar";
 $bar = "barbaz";
 
 echo "foo is $foo"; // foo is foobar
+
+// You can also use arrays
+$bar = array("value" => "foo");
+
+echo "this is {$bar['value']} !"; // this is foo !
 
 // Using single quotes will print the variable name, not the value
 echo 'foo is $foo'; // foo is $foo



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

Reply via email to