RE: [PHP-DEV] how-to get array[0] and array["name"] to actually r eference only 1 value?
| From: | Marc Boeren | Date: | Mon, 12 Feb 2001 08:29:08 +0000 |
| Subject: | RE: [PHP-DEV] how-to get array[0] and array["name"] to actually r eference only 1 value? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-46412@lists.php.net to get a copy of this message | ||
>Also, even though [0] and ['id'] initially contain the same value, they are
>not bound together in any way. You may be able to accomplish what you
>desire by using references. (See the manual section on references for more
>information.
>ie. $q->data[0]["id"] =& $q->data[0][0];
How can I create such a reference in code?
Now I'm using zend_hash_index_update and zend_hash_update for $q->data[0][0]
and $q->data[0]["id"], but that doesn't create a reference. So how should I
code this?
Cheerio, Marc.