You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you try to get all the anchors like this, then by default one (the last) element is returned: $anchors = $soup->getElementsByTagName('a');
The following does give me all the elements: $anchors = $soup->getElementsByTagName('a', null);
If you try to get all the anchors like this, then by default one (the last) element is returned:
$anchors = $soup->getElementsByTagName('a');
The following does give me all the elements:
$anchors = $soup->getElementsByTagName('a', null);
The
idx
value defaults to-1
. Is this on purpose?The text was updated successfully, but these errors were encountered: