Created
August 25, 2017 22:05
-
-
Save furkankadioglu/96d7f13bfb5f12a9647894fd993a3788 to your computer and use it in GitHub Desktop.
test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$crawler = Goutte::request('GET', $url); | |
$datalar = []; | |
$trIndex = 0; | |
$tdIndex = 0; | |
$crawler->filter('table')->each(function ($table) use ($trIndex, $tdIndex, $datalar) { | |
$table->filter('tr')->each(function ($tr) use ($trIndex, $tdIndex, $datalar) { | |
$tr->filter('td')->each(function ($td) use ($trIndex, $tdIndex, $datalar) { | |
$tdIndex++; | |
}); | |
$trIndex++; | |
}); | |
}); | |
return $datalar; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment