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 Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/86805-from-to/#findComment-443779 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.