note 7892 deleted from Classes and Objects by ronabop
| From: | ronabop@php.net | Date: | Sun, 20 Aug 2000 11:17:03 +0000 |
| Subject: | note 7892 deleted from Classes and Objects by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-2743@lists.php.net to get a copy of this message | ||
If I have a class:
class someClass
{
$var arOne;
$var arTwo;
// And I load the two arrays in the constructor.
function someClass()
{
$this->arOne = array( "", "", ... );
$this->arTwo = array(...);
}
}
Why is it that if I try to access one of the arrays in a member function they invariably switch data
around? Like arOne will print arTwo stuff and arTwo will also print arTwo stuff. Do you have to
declare a size for the array since it is in the class as it is?
Thanks.