I\'m using PHP strpos() to find a needle in a paragraph of text. I\'m struggling with how to find the next word after the needle is found.
strpos()
For
Or the "old" way... :-)
$word = "SCREENSHOT "; $pos = strpos($description, $word); if($pos!==false){ $link = substr($description, $pos+strlen($word)); $link = substr($link, strpos($link, " ")); }