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

Popular posts from this blog

Java 8 + Maven Javadoc plugin: Error fetching URL -

css - SVG using textPath a symbol not rendering in Firefox -

order - Notification for user in user account opencart -