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: 
This is because `array_keys` returns something like this:

```
array (size=2)
  0 => string 'anna' (length=4)
  1 => string 'revathy' (length=7)

```

So, what you need to do to make your script work is like this:

*p.s. in your script you had an undefined variable `$v`*

```
<?php

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

$honey = array_keys($some);

$something = array();

foreach($honey as $key => $value) // this is the change
{
    $something[$value] = $some[$value];

    echo $something[$value] ."<br>"; // and here
}

```

Outputs:

```
2
baba

```
you can skip 

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

```

just do 

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

```