foreach ($dom->find('.post h1 a') as $checkIfResultTrue2) {
$totalSearchResult = $checkIfResultTrue2->href;
if(count($totalSearchResult) > 1){
echo "more than 1";
}
}
why this didn't print more than 1? I tried .length but realised that is JS. I tried sizeof and count, no luck. When I echo $totalSearchResult, there are more than 1 links there.. hmm, what is the problem?