I am currently clearing some data from another website, and I am having problems getting only the first 5 elements.
$travelguide_row = $travelguide_xpath->query('//div[@class="traveltips"]//span|//div[@class="traveltips"]//p');
Is it possible to add additional syntaxes after //span and //p ? If so, how?
source share