redfox180 Posted January 19, 2008 Share Posted January 19, 2008 Hello, Does anybody know if there is a function in php that can consider just a determined part of text, given 2 known points (Start and Finish)? Ex James goes fishing every day with a box full of tools. I would like php to print the text FROM fishing TO with. Thanks Link to comment https://forums.phpfreaks.com/topic/86805-from-to/ Share on other sites More sharing options...
Barand Posted January 19, 2008 Share Posted January 19, 2008 use strpos() to find start and end, then use substr() to get the text Link to comment https://forums.phpfreaks.com/topic/86805-from-to/#findComment-443779 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.