phpdelusions is my main go to guide for everything php/pdo. But to just get started with PDO you really only need to know a few
A Simple Slope One User Item Recommender In PHP/MySQL
Big fan of user/item recommenders, which is also known as collaborative filtering. Slope one is a very basic but reasonably accurate recommender algorithm which makes
Parse Emails From a String
Handy one for all sorts of reasons, just don’t use it for evil : \. I also did an online working version of this function.
Properly testing for request variables
When you’re starting out in PHP you might find sometimes variables don’t exist when you want them to and you’ll get the NOTICE message from
Function For Returning First n Characters of a Paragraph
This function will return the first n (the number you request) characters careful to not break in the middle of a word. getSummary is also
Testing Memory Allocation
This nice routine is for testing PHP’s memory limits by increasingly allocating 50 more megabytes at a time. Each pass is setting the memory limit with an
A Flexible Text Parser Without Regular Expressions
Regular expressions are great but sometimes you want to do it faster (meaning easier), depending on what you’re trying to do. When you quickly want
Calculate a Time Difference Ago (ex: 4 hours ago)
This php function takes a timestamp and returns a detailed string of the time difference expressed in seconds, minutes, hours, days ago, or away if