Array-Deklaration in php
Am Freitag, 18. Jun 2010 im Topic 'E.T. phone home'
array("foo" => "bar", 12 => true);
array(5 => 43, 32, 56, "b" => 12);
array(5 => 43, 6 => 32, 7 => 56, "b" => 12);
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');
*/