|  | 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)
  Navigation: [Reply to this message] |