How to update array value then store/save it in the array using PHP? -


I am working with the array that looks like this:

  $ pms = Array ('Msg1' = & gt; array ('position' = & gt; 'unread', 'subject' = & gt; 'bla bla'), 'msg2' = & gt; array ('position' = & Gt; 'unread', 'topic' = & gt; test .. '),' msg3 '=> array (' position '= & gt;' unread ',' topic '= & gt; . '));   

What I want to achieve, for example, is to be able to select 'msg3', update the status to read 'unread' and in its position in the array Put back

How to do this?

Just give it some new value Other Array Variables:

  $ Pms ['msg3'] ['status'] = 'reading';    

Comments