Re: [PHP3] Array-question From: Mark Nold (MarkN <email protected>)
Date: 11/30/99

Im assuming they are names, if so i would

$data[1]["firstname"] = Skor;
$data[1]["surname"] = Skinn;
$data[2]["firstname"] = Halsduk;
$data[2]["surname"] = Ylle;
$data[3]["firstname"] = Jacka;
$data[3]["surname"] = Vinterjacka;

Then

echo $data[1]["firstname"] . " " . $data[1]["surname"];

or you could

while(list($key,$row) = each($data)){
  echo "<BR> $row['firstname'] $row['surname']\n";
}

Mark Nold
markn <email protected>
Systems Consultant
"Change is inevitable - except from vending machines"

>>> Stanislav Malyshev <stas <email protected>> 11/30 8:01 pm >>>
TS>> 1 Skor Skinn
TS>> 2 Halsduk Ylle
TS>> 3 Jacka Vinterjacka

$data = array(
                1 => array("Skor","Skinn"),
                2 => array("Haldsuk","Ylle"),
                3 => array("Jacka","Vinterjacka")
             );

echo $data[2][1];
        
should give you "Ylle";

-- 
Stanislav Malyshev   stas <email protected>          
+972-50-624945

-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>