I am operating with array that looks like this:
$pms = array(
'msg1' => array(
'status' => 'unread',
'subject' => 'bla bla'
),
'msg2' => array(
'status' => 'unread',
'subject' => 'test..'
),
'msg3' => array(
'status' => 'unread',
'subject' => 'moreee..'
)
);
What I want to achieve is to be able to select 'msg3' for example, update the status from 'unread' to 'read' and put it back in its position in the array.
How to do that?