I didn't getting all the anchor tag of url.
$client = new Client();
$crawler = $client->request('GET', 'https://css-tricks.com/
');
$anchorTagValue = $crawler->filter('a');
echo count($anchorTagValue);
Hi
Please use this code instead of $anchorTagValue = $crawler->filter('a');
$anchorTagValue = $crawler->filter('a')->text();
$anchorTagValue = $crawler->filter('a')->attr('href);
Hello,
I didn't getting all the anchor tag of url. $client = new Client(); $crawler = $client->request('GET', 'https://css-tricks.com/ '); $anchorTagValue = $crawler->filter('a'); echo count($anchorTagValue);
Like I have used this url "https://css-tricks.com/" but I got count anchor tag is "3".
Please help me.