Question: Hey guys i have tried to add the key of an array to another array's key but i didnt get the output as i expected ..My code is

```
<?php

$some = array('anna'=>'2','revathy'=>'baba');

$honey = array_keys($some);

$something = array();

foreach($honey as $value) {

$something[$value]=$some[$value];

echo $something[$value];

 }

?>

```

When i run this code it shows blank screen instead of the output ..Hope you guys can help me out ..Any help would be appreaciated..

Answer: 
```
foreach ($honey as $key => $value) {
    $something[$key]=$value;
}

```

This is the proper way of dong this :)
There is absolutely no need for $honey = array\_keys($some);
you can skip 

```
$honey = array_keys($some);

```

just do 

```
foreach($some as $key => $value)
{
    $something[$key] = $value;
}

```