Coding OverFlow
Friday, March 15, 2013
php print word by passing a string
function words($string, $limit)
{
$words = explode(" ",$string);
return implode(" ",array_splice($words,0,$limit));
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment