Answer the question
In order to leave comments, you need to log in
How to parse text that has no tags?
for example
<h1>кнопка без фиксации, металл 19мм., подсветка 12В.</h1><br>Код товара: 111055<br>
Answer the question
In order to leave comments, you need to log in
preg_match('/Код товара: ([0-9]+)/su', '<h1>кнопка без фиксации, металл 19мм., подсветка 12В.</h1><br>Код товара: 111055<br>', $match);
print_r($match[1]);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question