Posted by Kimmo Laine on 02/16/07 13:51
"TMN" <nash.rsa@gmail.com> wrote in message
news:1171633666.200970.46200@t69g2000cwt.googlegroups.com...
> $anArray[]= "";
> $ref = &$anArray[];
> $ref[] = "a";
> $ref[] = "b";
> $ref[] = "c";
>
> But with this I am ending up with an array inside $anArray not just
> a,b and c ?
$anArray = array();
$ref = &$anArray; // No [] here
$ref[] = "a";
$ref[] = "b";
$ref[] = "c";
--
"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]
|