1. Code
  2. PHP

How to Create Blog Excerpts with PHP


Ever visited a blog, and noticed that each posting’s body only contained a hundred characters or so, which is then followed by “…”? Ever wonder how to do that yourself without utilizing a CMS? It’s not quite as easy as you might think. In this video tutorial, I’ll show you how to do this, as well as a host of other neat little things, like working with MySQL’s LEFT() function, using PHP’s strrpos, and substr, creating the beginning’s of an actual blog, and more. It’s only fifteen minutes, so let’s dig in!

Full Screencast

Looking for something to help kick start your next project?
Envato Market has a range of items for sale to help get you started.