PHP String functions for long strip of data
<p>i need to fetch data from the following strings and need to place their values according to their type</p>

<p>1)
<strong><em>Response: Success Message: Mailbox Message Count Mailbox: 6000 UrgMessages: 0 NewMessages: 5 OldMessages: 12</em></strong></p>

<p><strong>Required Output:</strong> example OLD= 12 NEW=5 URGENT=0</p>

<p>2)
 Name       : 6000
  Secret       : 
  MD5Secret    : 
  Context      : DLPN_Admin
  Language     :
  AMA flags    : Unknown
  Transfer mode: open
  MaxCallBR    : 384 kbps
  CallingPres  : Presentation Allowed, Not Screened
  Call limit   : 2147483647
  Callgroup    : 1
  Pickupgroup  : 1
  Callerid     : "Arham Ali" &lt;6000>
  ACL          : No
  Sess-Timers  : Accept
  Sess-Refresh : uas
  Sess-Expires : 1800 secs
  Sess-Min-SE  : 90 secs
  Codec Order  : (ulaw:20,gsm:20)
  Auto-Framing:  No</p>

<p><strong>Required Output:</strong> CallerId="Arham Ali" Name= "6000"</p>

<p>I am very much stuck with this stupid thing for so long please help me in PHP domain.</p>
