File tree Expand file tree Collapse file tree 1 file changed +17
-13
lines changed Expand file tree Collapse file tree 1 file changed +17
-13
lines changed Original file line number Diff line number Diff line change @@ -362,30 +362,34 @@ This behavior is best illustrated with examples::
362362 $crawler->addHtmlContent($html);
363363
364364 $crawler->filterXPath('//span[contains(@id, "article-")]')->evaluate('substring-after(@id, "-")');
365- /* array:3 [
366- 0 => "100"
367- 1 => "101"
368- 2 => "102"
369- ]
365+ /* Result:
366+ [
367+ 0 => '100',
368+ 1 => '101',
369+ 2 => '102',
370+ ];
370371 */
371372
372373 $crawler->evaluate('substring-after(//span[contains(@id, "article-")]/@id, "-")');
373- /* array:1 [
374- 0 => "100"
374+ /* Result:
375+ [
376+ 0 => '100',
375377 ]
376378 */
377379
378380 $crawler->filterXPath('//span[@class="article"]')->evaluate('count(@id)');
379- /* array:3 [
380- 0 => 1.0
381- 1 => 1.0
382- 2 => 1.0
381+ /* Result:
382+ [
383+ 0 => 1.0,
384+ 1 => 1.0,
385+ 2 => 1.0,
383386 ]
384387 */
385388
386389 $crawler->evaluate('count(//span[@class="article"])');
387- /* array:1 [
388- 0 => 3.0
390+ /* Result:
391+ [
392+ 0 => 3.0,
389393 ]
390394 */
391395
You can’t perform that action at this time.
0 commit comments