note 77791 added to function.key
| From: | yarco dot w at gmail dot com | Date: | Thu, 13 Sep 2007 08:45:42 +0000 |
| Subject: | note 77791 added to function.key | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-130449@lists.php.net to get a copy of this message | ||
Re: br_joris[at]hotmail[doth]com
Do you really mean you want 2 keys point to 1 value?
What you've written seems you want 1 key point to 2 values.
But if you really want 2 keys point to 1 value, you could do the following:
<?php
$buf['key1'] = 'abc';
$buf['key2'] = & $buf['key1'];
?>
----
Server IP: 222.73.207.140
Probable Submitter: 61.171.30.98
----
Manual Page -- http://www.php.net/manual/en/function.key.php
Edit -- https://master.php.net/note/edit/77791
Del: integrated -- https://master.php.net/note/delete/77791/integrated
Del: useless -- https://master.php.net/note/delete/77791/useless
Del: bad code -- https://master.php.net/note/delete/77791/bad+code
Del: spam -- https://master.php.net/note/delete/77791/spam
Del: non-english -- https://master.php.net/note/delete/77791/non-english
Del: in docs -- https://master.php.net/note/delete/77791/in+docs
Del: other reasons-- https://master.php.net/note/delete/77791
Reject -- https://master.php.net/note/reject/77791
Search -- https://master.php.net/manage/user-notes.php