I have this content in a variable in PHP. How do I make a foreach where I have the field name in one variable and the value in another?
<Transaction id="1">
<Table name="if_802_11_stats">
<Body status="0" statusdescription="" startrecord="1" endrecord="242" totalrecords="242">
<Entry status="0">
<Field name="IfIndex">1</Field>
<Field name="NodeType">ap</Field>
</Entry>
<Entry status="0">
<Field name="IfIndex">2</Field>
<Field name="NodeType">ap</Field>
</Entry>
</Body>
</Table>
</Transaction>