I have html like this:
<span><b>Company: </b> Nirmal Datacomm Pvt Ltd<br> <b>location: </b> Mumbai<br> <b>Ref: </b> 8560918<br> </span>
I want to extract the bold text and the text immediately following it into an array like the following:
array('company'=>'Nirmal DataComm Pvt Ltd','location'=>'Mumbai','ref'=>'8560918')
I am new to PHP. By going through related questions, I learnt that it can be done using DOMXPath (if i'm not wrong). I read several other examples about using DOMXPath but could not get any clue for query.
Any help appreciated.
Thanks and Regards
Chandra