siehe auch: Figurenbrut und Marcofinkenstein.de
Zum Opferberg →
Array-Deklaration in php

array("foo" => "bar", 12 => true);
array(5 => 43, 32, 56, "b" => 12);
array(5 => 43, 6 => 32, 7 => 56, "b" => 12);
Quelle: http://www.php.net/manual/de/language.types.array.php

Kommentieren



gedankenmaler, Freitag, 18. Juni 2010, 22:00

$a = array(1 => 'one', 2 => 'two', 3 => 'three');
unset($a[2]);

/*
will produce an array that would have been defined as
$a = array(1 => 'one', 3 => 'three');
and NOT
$a = array(1 => 'one', 2 =>'three');
*/