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
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
Handy one for all sorts of reasons, just don’t use it for evil : \. I also did an online working version of this function.
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
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
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
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
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