I'm trying to figure out how to extract the part between the 'href="' and '"' in the string:
'href="/pagename/?stuff"'
So basically I've gotten the position of 'href="', then added 6 so it starts after that string, but how do i get the substr from that position to the NEXT quote (")?
something like:
'href="/pagename/?stuff"'
So basically I've gotten the position of 'href="', then added 6 so it starts after that string, but how do i get the substr from that position to the NEXT quote (")?
something like:
Code:
$start = strpos($link_text,'href="') + 6;
$something = get first (") AFTER 'href="';
$url = substr($link_text,$start,$something);