tmh766 Posted February 15, 2007 Share Posted February 15, 2007 How is it possible to search a string, find a start character and save all the characters after the start character into a variable untill an ending character is found? I know its something like this... $startPlace=strpos($content,"start string"); But I dont know a way to save the content after the start character untill and ending character is found... Link to comment https://forums.phpfreaks.com/topic/38695-get-substring-within-string/ Share on other sites More sharing options...
Jessica Posted February 15, 2007 Share Posted February 15, 2007 $sub = substr($string, strpos($string, 'search')); Link to comment https://forums.phpfreaks.com/topic/38695-get-substring-within-string/#findComment-185861 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.