phpbar.de logo

Mailinglisten-Archive

Re: [php] zweidimensionales Array sortieren
Archiv Mailingliste php_(at)_infosoc.uni-koeln.de

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [php] zweidimensionales Array sortieren




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)

Home | Main Index | Thread Index

php::bar PHP Wiki   -   Listenarchive