Advertisement
  1. Code
  2. PHP

How to Create Blog Excerpts with PHP

Scroll to top
1 min read

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


Advertisement
Did you find this post useful?
Want a weekly email summary?
Subscribe below and we’ll send you a weekly email summary of all new Code tutorials. Never miss out on learning about the next big thing.
Advertisement
Looking for something to help kick start your next project?
Envato Market has a range of items for sale to help get you started.