phpbar.de logo

Mailinglisten-Archive

[php] arrays erstellen

[php] arrays erstellen

Kristian =?iso-8859-1?Q?K=F6hntopp?= kk_(at)_netuse.de
Mon, 06 Dec 1999 17:42:14 +0100


Andreas Otto wrote:
> "001"  "Annabel Karmel's Baby and Toddler Meal Planner (Ebury Press)"  "10.99"
> "1"

$item = 1;
$article[$item]["artnr"] = "001";
$article[$item]["bez"]   = "Annable Karmel's...";
$article[$item]["preis"] = 10.99;
$article[$item]["num"]   = 1;

reset($article);
while(list($k, $v) = each($article)) {
  printf("Nummer %d: %s %s %s %s\n", 
     $k, $v["artnr"], $v["bez"], $v["preis"], $v["num"]);
}


Oder habe ich da was flasch verstanden?

Kristian

-- 
Kristian Köhntopp, NetUSE Kommunikationstechnologie GmbH
Siemenswall, D-24107 Kiel, Germany, +49 431 386 436 00
Using PHP3? See our web development library at
http://phplib.netuse.de/ (We have moved! Update your bookmarks!)


php::bar PHP Wiki   -   Listenarchive