Skip to content

Instantly share code, notes, and snippets.

@emil-nasso
Created May 6, 2015 06:26
Show Gist options
  • Save emil-nasso/fbcb821b663d12e6d1b2 to your computer and use it in GitHub Desktop.
Save emil-nasso/fbcb821b663d12e6d1b2 to your computer and use it in GitHub Desktop.
$targetValues = [];
$crawler->filter("input[name='target[]']")->each(function(Crawler $target) use (&$targetValues){
$targetValues[] = $target->attr('value');
});
var_dump($targetValues);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment