8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
extract()
1 parent c587a66 commit b89cd59Copy full SHA for b89cd59
components/dom_crawler.rst
@@ -214,12 +214,13 @@ Extract attribute and/or node values from the list of nodes::
214
215
$attributes = $crawler
216
->filterXpath('//body/p')
217
- ->extract(array('_text', 'class'))
+ ->extract(array('_name', '_text', 'class'))
218
;
219
220
.. note::
221
222
- Special attribute ``_text`` represents a node value.
+ Special attribute ``_text`` represents a node value, while ``_name`` represents element name.
223
+ Attribute ``_name`` will be added in version 4.3.
224
225
Call an anonymous function on each node of the list::
226
0 commit comments