Skip to content

BitBook

  • Online Tools
  • Dev
  • Sysadmin
  • Reviews
  • Machine Learning
  • Home
  • Dev
  • PHP
  • Page 3

PHP

PHP development tips, functions, and how tos

learn-pdo-php

Learn PDO In 30 Seconds

November 29, 2016 mike PHP

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

collaborative-filtering

A Simple Slope One User Item Recommender In PHP/MySQL

November 27, 2016 mike Machine Learning, PHP

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

November 24, 2016 mike Parser Tools, PHP

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

November 19, 2016 mike PHP

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

November 16, 2016 mike PHP

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

memory

Testing Memory Allocation

November 16, 2016 mike PHP

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

November 16, 2016 mike PHP

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)

November 14, 2016 mike PHP

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

Posts navigation

«Previous Posts 1 2 3

Bitbook

  • About
  • Privacy Policy
  • Terms of Service