I am trying to use Symfony Crawler.
So I have checked this article.
What I want to do is to get the 3,335.00
(The second argument)
For now, I try sentence like this, but it is wrong.
$crawler = $crawler->filter('body > div[@class="cell_label"]');
How can I do it??
<body>
<div class="cell__label"> Value1 </div> <div class="cell__value cell__value_"> 2,355.00 </div>
<div class="cell__label"> Value2 </div> <div class="cell__value cell__value_"> 3,355.00 </div>
<div class="cell__label"> Value3 </div> <div class="cell__value cell__value_"> 4,355.00 </div>
</body>
$crawler = new Crawler($url);
$crawler = $crawler->filter('body > div[@class="cell_label"]');//// no work...
foreach ($crawler as $domElement) {
var_dump($domElement);
}