E
E
En1ken2017-08-15 18:50:24
Parsing
En1ken, 2017-08-15 18:50:24

Pull value from link?

Hello.
There is a block like

<a target="_blank" href="/number?transaction=11080041611&amp;direction=OUT" class="cheque">
                           Просмотр чека
                        </a>

You need to get the transaction= value, that is, in this case 11080041611
$result = $xpath->query( './/div[@class="operations"]', $row );// тут получаем данные в блоке div
$transaction[ 'operations' ] = trim( $result->item( 0 )->nodeValue );// заносим в массив данные

Tell me what I'm doing wrong

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question