[SOLVED] Array numeric index as string
Posted: Sun Aug 20, 2006 5:02 am
Code: Select all
<?php
$a = array('1' => 'one', '2' => 'two');
$b = array('a' => 'A', 'b' => 'B');
$c = array_merge($a, $b);
print_r($c);
?>What I want is Array ( [1] => one [2] => two [a] => A => B )
Is there a way to accomplish this ?
[I dont want to change my $a to $a = array('01' => 'one', '02' => 'two');]
Thanks