substr like function to work on complete words
Posted
by amit
on Stack Overflow
See other posts from Stack Overflow
or by amit
Published on 2010-03-21T16:03:38Z
Indexed on
2010/03/21
16:11 UTC
Read the original article
Hit count: 370
php
i am using substr to trim the first 100 characters from the string. however i need a function that can trim a particular number of words, instead of characters from a string?
$trimmed_details = substr($row->details, 0, 200).'...';
is there a built in function to do that?
© Stack Overflow or respective owner