A
A
Alexey selftrips.ru2018-08-26 10:58:48
PHP
Alexey selftrips.ru, 2018-08-26 10:58:48

How to get row of html table?

Given table:

<tr>
....
</tr>
<tr>
<td>текст</td>
....
<td>abc</td>
<td>текст</td>
....
</tr>
<tr>
....
</tr>

How to use PHP to find the line that contains abc and get the whole line? That is, in this example, get the string:
<tr><td>текст</td>....<td>abc</td><td>текст</td>....</tr>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2018-08-26
@demon416nds

regexp to the rescue

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question