I have many strings like these (HTML ones). Long select/option tags like the following.
<option value="93">Afghanistan (93)</option>
<option value="355">Albania (355)</option>
<option value="213">Algeria (213)</option>
<option value="376">Andorra (376)</option>
<option value="244">Angola (244)</option>
<option value="264">Anguilla (264)</option>
I intend to convert this into a PHP array like,
array("93"=>"Afghanistan (93)","355"=>"Albania (355)","213"=>"Algeria (213)", ...)
I've never worked on RegEx in PHP so don't know how to approach this. What code/functions should I be using to convert such data?