dimanche 28 août 2016

How to receive text from <div> tag?

I have a tag <div class="text9"> with text. I need to add this text in the title. For example: <div> for sale. How can I do that?

I tried this, but it did not work:

preg_match('#<div class="text9">(.*?)</div>#isU'$text, $out);

Aucun commentaire:

Enregistrer un commentaire