Using the getElementsByTagName method to navigate and find the child in question.
$number_orders = $image_1->getElementsByTagName('number_order');
foreach ($number_orders as $key => $value) {
$value->nodeValue = "teaser";
}
Il n'y a pas de questions bêtes

Photo de Christopher Gower sur Unsplash
Using the getElementsByTagName method to navigate and find the child in question.
$number_orders = $image_1->getElementsByTagName('number_order');
foreach ($number_orders as $key => $value) {
$value->nodeValue = "teaser";
}