phpbar.de logo

Mailinglisten-Archive

[php] Arrays?!

[php] Arrays?!

=?iso-8859-1?Q?Bj=F6rn_Schotte?= bjoern_(at)_baer.main.de
Sun, 9 Jul 2000 18:19:06 +0200


Hi,

* Stefan Markmann wrote:
> wie werden arrays denn richtig ausgelesen?

PHP4:

reset($deinarray);

foreach ($deinarray as $key => $value)
{
  print "deinarray[$key] = $value<br>\n";
}

PHP3/4:

reset($deinarray);

while (list($key,$value) = each($deinarray))
{
  print "deinarray[$key] = $value<br>\n";
}



Weiterführende Literatur:

<http://php-center.de/de-html-manual/ref.array.html>
-- 
<?php class new_media_development {
        var $url="http://www.rent-a-phpwizard.de/";
        var $fon="0931/7843792"; var $fax="0931/7843795";
} /* Björn Schotte, "Mr. PHP" */ ?>


php::bar PHP Wiki   -   Listenarchive