I’ve decided to start a new section on DavePCGuy that deals entirely with PHP tips & tricks. What’s great about that is that I show you some of the lesser known/used PHP functions, PHP uses in new creative ways.

First up is substr(), a simple yet rarely used function that cuts up your string. You tell it where to cut, and the function cuts. Now, you’ll be thinking, why use this?

Let me fist show you how it works.
More >