Symfony\Component\DomCrawler\Crawler::extract
Extracts information from the list of nodes.
You can extract attributes or/and the node value (_text). Example: $crawler->filter('h1 a')->extract(array('_text', 'href'));
Signature
public function extract(array
$attributes )
Parameters
$attributes
— array- An array of attributes
Returns
- array
- An array of extracted values