Answer the question
In order to leave comments, you need to log in
What is the mask for parsing this word?
There is a tag
Trying to get the word DECLINED like this
<OrderStatus>DECLINED<\/OrderStatus>
preg_match_all('#<OrderStatus>(.+?)<\/OrderStatus>#su', $html, $arr); // OrderStatus
var_dump($arr);
Answer the question
In order to leave comments, you need to log in
<OrderStatus>(.+?)<\\\/OrderStatus>
https://www.phpliveregex.com/p/vMV
The correct approach in such tasks is to use PHP functionality to work with the DOM tree
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question