phpbar.de logo

Mailinglisten-Archive

[php] zweidimensionales Array sortieren

[php] zweidimensionales Array sortieren

Kristian =?iso-8859-1?Q?K=F6hntopp?= kk_(at)_netuse.de
Thu, 22 Apr 1999 18:38:11 +0200


Christian von Toerne schrieb:
> Gibt's in PHP 2d-Arrays? Wusste ich gar nicht.

From php3/CHANGES

Noticeable Changes between PHP/FI 2.0 and PHP 3.0
=================================================

[11]    Support for multidimensional arrays.

(Or as Andi calls them, 'hyperdimensional variables'.)

The easiest way to define this support of PHP 3.0 is inductive -
arrays can contain any type of variables, including other arrays.
A simple example:

  $a[0]=5;
  $a[1]["testing"]=17;
  $b["foo"]=$a;

Ok, so it may be not so simple.  Play with it, it's pretty
powerful.


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.shonline.de/ (GPL)


php::bar PHP Wiki   -   Listenarchive