Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "J.O. Aho" Newsgroups: comp.lang.php Subject: Re: ArrayObject vs array Date: Mon, 26 Jul 2021 11:11:28 +0200 Lines: 27 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net sp2lw+4cbmheckLmcwa2aQpObo0IDBFcvSHSqYLXOfTTaFK9WH Cancel-Lock: sha1:JECZeaEdpCpSBwp4Ge0M03TotLU= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 In-Reply-To: Content-Language: en-US-large Xref: csiph.com comp.lang.php:18752 On 26/07/2021 10.14, alex wrote: > Il 25/07/21 11:48, J.O. Aho ha scritto: >> >> You can make objects to have links to other objects (reference), > > That is? class myclass { public $next; public $data; } $a = new myclass(); $a->next = new myclass(); $a->next->next = new myclass(); >> then it would be a bit array like at the same time it can hold it's data > > That is? $a->data = "my data"; $a->next->data = "next cell data"; -- //Aho