Mailinglisten-Archive |
Hallo,
es existiert ein Array:
Array
(
[ee] => Apfel
[cc] => Ball
[bb] => Ziegel
)
Daraus soll dann dies werden:
Array
(
[aa] => Tisch
[ee] => Apfel
[cc] => Ball
[bb] => Ziegel
)
Dies versuche ich mit array_unshift()
<?php
$MyARR = array('ee'=>'Apfel', 'cc'=>'Ball', 'bb'=>'Ziegel');
array_unshift($MyARR, array('aa'=>'Tisch'));
print_r($MyARR);
?>
Aber es kommt dies heraus:
Array
(
[0] => Array
(
[aa] => Tisch
)
[ee] => Apfel
[cc] => Ball
[bb] => Ziegel
)
Hat da jemand eine Idee dazu, oder geht das gar nicht ?
m. b. G. N. Pfeiffer
---------------------
normal: 06131-1436094
Notruf: 0163-3613642
---------------------
e.o.f.
php::bar PHP Wiki - Listenarchive