hello i have a variable that has the text below:
<p>Not sure exactly which property you want to extract, but I assume it's the 'question_answers_url'.</p>
<pre><code>$answersArray = Array();
for($i=0;$i<count($jsonArray['questions']);$i++){
//assuming it is the 'question_answers_url' property that you want
array_push($answersArray,$jsonArray['questions'][$i]['question_answers_url']);
}
</code></pre>
<p>Ought to do it.</p>
how can i get only the text that is between <p>TEXT_I_WANT</p> and trash everything else.
Untested !!
Updated!