Open tiger899 opened 6 years ago
try this @tiger899
$news = $crawler->filterXPath('//table[@id="board_online"]')->filter('tr')->each(function ($tr, $i) { return $tr->filter('td')->each(function ($td, $i) { return trim($td->text()); }); });
Many Thanks !
I have this code:
It show message:
I want it return array, but it error, please help me !