Simple HTML Dom get href that begins with -
i using simple html dom extract information remote source. href links contain particular piece of text (not on page). have tried
->find('a[href*="/place"]')
and
->find('a[href="/place"*]')
and
->find('a[href="/place*"]')
but returns empty results.
the href trying must begin text "/place".
any suggestions? thanks
match elements have specified attribute , starts value, use [attribute^=value]
.
->find('a[href^="/place"]')
ref: http://simplehtmldom.sourceforge.net/manual.htm#frag_find_attr
Comments
Post a Comment