K
K
kapai692014-02-02 10:58:43
symfony
kapai69, 2014-02-02 10:58:43

How to access second element in Symfony2 crawler?

Hello, I have html code

<table>
<tr>
  <td>Цена:</td>
  <td>2,396.00 р.</td>
  <td>Описание</td>
</tr>
</table>

I get access to the first object:
$crawler = $crawler->filter("td");
How to get access to the second one, where is the price?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
_
_ _, 2014-02-02
@kapai69

"td:nth-child(2)" maybe?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question