[prev in list] [next in list] [prev in thread] [next in thread]
List: php-general
Subject: [PHP] References and array indexes
From: Gabriel Birke <birke () kontor4 ! de>
Date: 2004-08-05 8:14:26
Message-ID: 7734DD62-E6B7-11D8-B7F2-003065FA313E () kontor4 ! de
[Download RAW message or body]
Hello!
The following PHP code:
<?
$a = array("1"=>"First Element", "2"=>"Second Element");
$v = &$a['3'];
print_r($a);
?>
has this result:
Array(
1 => First Element,
2 => Second Element,
3 =>
)
Can anyone give me an explanation for this? What is happening in the
guts of the PHP interpreter when it gets these instructions?
With best regards
Gabriel Birke
--
KONTOR4_Neue Medien
Plathnerstraße 5
30175 Hannover
Fax: +49 51184 48 98 99
mailto:birke@kontor4.de
http://www.kontor4.de
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic