et Sun Dec 21 10:59:19 2003 EDT
Modified files:
/phpdoc/en/language oop.xml
Log:
Fix Bug #26402
Index: phpdoc/en/language/oop.xml
diff -u phpdoc/en/language/oop.xml:1.47 phpdoc/en/language/oop.xml:1.48
--- phpdoc/en/language/oop.xml:1.47 Fri Dec 12 14:56:00 2003
+++ phpdoc/en/language/oop.xml Sun Dec 21 10:59:19 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.47 $ -->
+<!-- $Revision: 1.48 $ -->
<chapter id="language.oop">
<title>Classes and Objects</title>
@@ -114,12 +114,13 @@
<programlisting role="php">
<![CDATA[
<?php
-/* None of these will work in PHP 4. */
class Cart
{
+ /* None of these will work in PHP 4. */
var $todays_date = date("Y-m-d");
var $name = $firstname;
var $owner = 'Fred ' . 'Jones';
+ /* Arrays containing constant values will, though. */
var $items = array("VCR", "TV");
}
@@ -129,7 +130,7 @@
var $todays_date;
var $name;
var $owner;
- var $items;
+ var $items = array("VCR", "TV");
function Cart()
{