md5 php数组值

I need to hash a value using md5 in a PHP array value,

'password' => array(        
   'value' => md5($form_data['password'])               
)

I tried with the above code but it didn't seem to work.

check this code and working . i think your code is correct . so if you show your full array then we can understand which section problem. i define array as your code array and it is working fine

<?php
$array = array(
    'password' => array(
        'value' => '12456'
    ),
    'name' => array(
        'name' => 'Test Name'
    )
);
echo "<pre>";
print_r($array);

$md5_array = array(
    'password' => array(
        'value' => md5('12456')
    ),
    'name' => array(
        'name' => 'Test Name'
    )
);

echo "<pre>";
print_r($md5_array);
?>

then output before md5 :

Array
(
    [password] => Array
        (
            [value] => 12456
        )

    [name] => Array
        (
            [name] => Test Name
        )

)

after md5 :

Array
(
    [password] => Array
        (
            [value] => 6a9edcb7b63821802aa44d35d531c9fc
        )

    [name] => Array
        (
            [name] => Test Name
        )

)

for more information

http://php.net/manual/en/function.md5.php