Closed butchewing closed 7 years ago
I made $nodeUrl
and $nodeText
array keys to avoid duplication in the array and force unique values - in case the same url's exists in many pages with the same link text.
do you have better idea how to implement?
Ah, I see. Good point. I was simply trying to figure out a way to parse through the array without knowing the key name.
What is the rationale for using named
$nodeUrl
and$nodeText
array keys?Crawler.php Line 363 & 364
Would it not be more consistent and easier to parse if we changed to numerical keys?