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));
}
Posted by Unknown at 6:31 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2014 (7)
    • ►  July (2)
    • ►  June (1)
    • ►  May (2)
    • ►  January (2)
  • ▼  2013 (18)
    • ►  August (5)
    • ▼  March (13)
      • Jquery serialize function
      • Url rewriting using cakephp
      • #1045 - Access denied for user 'root'@'localhost' ...
      • Function to Convert Multidimensional Arrays to std...
      • Php Function to Convert stdClass Objects to Multid...
      • Php get directory list
      • Php time ago function
      • php print word by passing a string
      • Wordpress get child categories list passing parent...
      • Wordpress get menu list by menu name
      • Wordpress wp-query or get all posts in a array
      • Free Stock Chart Widgets for your Website and Blog
      • Cakephp checkbox creation

About Me

Unknown
View my complete profile
Simple theme. Theme images by luoman. Powered by Blogger.