We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5340
    • 1,624 Posts
    HI,

    How can I extract the following from an html page:

    <p class="Question">Question 1</p>
    <p class="Answer">Answer 1</p>
    
    <p class="Question">Question 2</p>
    <p class="Answer">Answer 2</p>


    ... I have all the html as string in php but I am not sure how to extract what I need(see ex above) or get everything in an Array.


    Thx