Reply to Re: Arrays and references

Your name:

Reply:


Posted by Kimmo Laine on 02/16/07 12:54

"TMN" <nash.rsa@gmail.com> wrote in message
news:1171628462.501867.158990@t69g2000cwt.googlegroups.com...
> On Feb 15, 6:40 pm, Toby A Inkster <usenet200...@tobyinkster.co.uk>
> wrote:
>> TMN wrote:
>> > $anArray[]= "";
>>
>> > $ref = &$anArray[];
>>
>> > $ref = "a";
>> > $ref = "b";
>> > $ref = "c";
>>
>> $anArray[]= "";
>> $ref = &$anArray[];
>> $ref[] = "a";
>> $ref[] = "b";
>> $ref[] = "c";
>>
>> --
>> Toby A Inkster BSc (Hons) ARCS
>> Contact Me ~http://tobyinkster.co.uk/contact
>> Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux
>>
>> * = I'm getting there!
>
> What I am trying to do is get a reference to an array so I can add
> elements to arrays via the ref.


You have to use the [] construct, there's no way around it. Yo can create a
reference to the array, but you still need the [].

--
"Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
http://outolempi.net/ahdistus/ - Satunnaisesti pδivittyvδ nettisarjis
spam@outolempi.net | rot13(xvzzb@bhgbyrzcv.arg)

[Back to original message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация