Answer the question
In order to leave comments, you need to log in
How to select in xml?
Good afternoon!
How to select a specific id in an xml file?
Example:
<user>
<id>1</id>
...
</user>
<user>
<id>2</id>
...
</user>
$file = $_SERVER['DOCUMENT_ROOT']."/file/1-10/1 (4).xml";
$xml = simplexml_load_file($file);
foreach ($xml->user as $user) {
$user->id;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question