CVS update: php3/doc/chapters

From: Date: Sun, 13 Sep 1998 17:43:27 +0000
Subject: CVS update: php3/doc/chapters
Groups: php.dev 
Request: Send a blank email to php-dev+get-1032@lists.php.net to get a copy of this message
Date: Sunday September 13, 1998 @ 13:43 Author: eschmid Update of /repository/php3/doc/chapters In directory asf:/u2/tmp/cvs-serv19254/doc/chapters Modified Files: lang-const.sgml Log Message: Minor corrections and identation Index: php3/doc/chapters/lang-const.sgml diff -c php3/doc/chapters/lang-const.sgml:1.24 php3/doc/chapters/lang-const.sgml:1.25 *** php3/doc/chapters/lang-const.sgml:1.24 Fri Sep 11 09:34:24 1998 --- php3/doc/chapters/lang-const.sgml Sun Sep 13 13:43:26 1998 *************** *** 478,484 **** <para> Other languages have a foreach statement to traverse an array ! or hash. PHP uses the while statement and the <function>list<function> and <function>each</function> functions for this. See the documentation for these functions for an example. --- 478,484 ---- <para> Other languages have a foreach statement to traverse an array ! or hash. PHP uses the while statement and the <function>list</function> and <function>each</function> functions for this. See the documentation for these functions for an example. *************** *** 892,902 **** becomes a constructur when it has the same name as the class. </para> <informalexample> class Auto_Cart extends Cart { ! function Auto_Cart() { ! $this->add_item("10", 1); ! } } </informalexample> <para> --- 892,904 ---- becomes a constructur when it has the same name as the class. </para> <informalexample> + <programlisting role=php> class Auto_Cart extends Cart { ! function Auto_Cart() { ! $this->add_item("10", 1); ! } } + </programlisting> </informalexample> <para> *************** *** 907,916 **** makes them much more useful. </para> <informalexample> class Constructor_Cart { ! function Constructor_Cart($item = "10", $num = 1) { ! $this->add_item($item, $num); ! } } // Shop the same old boring stuff. --- 909,919 ---- makes them much more useful. </para> <informalexample> + <programlisting role=php> class Constructor_Cart { ! function Constructor_Cart($item = "10", $num = 1) { ! $this->add_item($item, $num); ! } } // Shop the same old boring stuff. *************** *** 918,923 **** --- 921,927 ---- // Shop for real... $different_cart = new Constructor_Cart("20", 17); + </programlisting> </informalexample> </sect1> -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#1032) next »