if I have a string, what function do I use to get certain content from it? I havnt coded in years So I kind of forget. For Example: $string = "<a href='http://google.com'>TEXT HERE THAT I WANT TO EXTRACT</a>" How would I extract the text on the link, in this case its "TEXT HERE THAT I WANT TO EXTRACT" Thanks
I second to that, but a better approach should be as follows: $string = "<a href='http://google.com'>TEXT HERE THAT I WANT TO EXTRACT</a>"; preg_split("/>([^<]*)</", $string); Code (markup):