I have this array
 $the_posted = Array
            (
    0 => Array
        (
            0 => 1,
            1 => 2,
            2 => 3,
            3 => 4,
        ),
    1 => Array
        (
            0 => 5,
            1 => 6,
            2 => 7,
            3 => 8,
        )
);
whose keys i need to modify.I trying to modify the array keys like
$all_array_keys = array_keys($the_posted);
 foreach ( array_keys($the_posted) as $k=>$v )
{
  $all_array_keys[$k]= rand();
}
  echo '<pre>';
  print_r($all_array_keys);
  echo "<hr/>";
  print_r($the_posted);
  echo '<pre>';
I get this result
Array
(
    [0] => 25642
    [1] => 8731
)
Array
(
    [0] => Array
        (
            [0] => 1
            [1] => 2
            [2] => 3
            [3] => 4
        )
    [1] => Array
        (
            [0] => 5
            [1] => 6
            [2] => 7
            [3] => 8
        )
)
The change in keys is not reflected in the final array.How do i make this work?.
 
     
    