phpbar.de logo

Mailinglisten-Archive

[php] Mehrdimensionales Array in Schleife anlegen

[php] Mehrdimensionales Array in Schleife anlegen

Tobias Orterer php_(at)_phpcenter.de
Thu, 25 Apr 2002 15:23:23 +0200


Marc Mc Guinness wrote:
> $i=1;
> while(..........){
>   $row_array = array($i => array(1 => $name, 2=> $telefon));
>   $i++;
> }

while(..........){
	$row_array[$i][1] = $name;
	$row_array[$i][2] = $telefon;
	$i++;
}


php::bar PHP Wiki   -   Listenarchive