bholls Posted March 12, 2008 Share Posted March 12, 2008 Hi all, Hoping this one's going to be simple. Is there a php function that I can apply to a string to take just a 'snippet' from it? What I'm trying to achieve is to display search results with an excerpt from each item's main content text. Many thanks, bholls Quote Link to comment Share on other sites More sharing options...
dooper3 Posted March 12, 2008 Share Posted March 12, 2008 look up substr() on php.net, that should help you. Quote Link to comment Share on other sites More sharing options...
bholls Posted March 12, 2008 Author Share Posted March 12, 2008 the one string function I didn't look at... Many thanks! Quote Link to comment 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.