note 13383 deleted from language.oop by sander
| From: | sander@php.net | Date: | Sat, 06 Apr 2002 19:02:26 +0000 |
| Subject: | note 13383 deleted from language.oop by sander | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-28736@lists.php.net to get a copy of this message | ||
I noticed that the following will not work within a class:
echo "Name: $this->foo[1]";
Instead you must use the print() function:
print ( "Name: " . $this->foo[1] );
The former will work with non-arrays.