mel47 Posted June 18 Share Posted June 18 (edited) Hi No success on forum unless I didn't have the good keywords... I created a short sentence using $short = sanitizer()->truncate($person->content, 150); But then I want to remove this sentence from the content. The usage is a accordion (clicking the sentence open the full text, but without repeating the same sentence again). Thanks! Mel Edited June 19 by mel47 solved Link to comment Share on other sites More sharing options...
ngrmm Posted June 18 Share Posted June 18 Did you try str_replace? 2 Link to comment Share on other sites More sharing options...
mel47 Posted June 19 Author Share Posted June 19 Thanks, success! For the sake of ulterior reference : str_replace($short, '', $person->content); 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now