Hey,
I have a PHP array and an XML file structured like below:
<?xml version="1.0"?>
<question_list>
<question>
<id>
1
</id>
<text>
What is a Cat?
</text>
</question>
<question>
<id>
2
</id>
<text>
What is your name?
</text>
</question>
<question>
<id>
3
</id>
<text>
Where are you now?
</text>
</question>
<question>
<id>
5
</id>
<text>
Where is Brazil?
</text>
</question>
</question_list>
How can I search using SimpleXML through my xml file to find all questions which have id’s which are in the PHP array?