PHP – How to change the value of the son of a DOM Object?

Using the getElementsByTagName method to navigate and find the wire in question.

$number-orders - $image-1--getElementsByTagName ('number_order');
foreach ($number-orders as $key $value)
   $value-nodeValue - "teaser";
}

Leave a Reply