php

Mercurial Hook for Syntax Checking (PHP)

by Brett on October 8, 2010

For those unfamiliar with Mercurial, it is an awesome Source Control Management (SCM) tool. One of my favorite features of Mercurial is that the repositories are distributed which allows each machine to have a full copy of the project’s history. Being distributed has many advantages such as faster committing, branching, tagging, merging, etc. since it […]

{ 4 comments }

I recently had a project where I needed to accomplish the following two tasks: Replace all but the last four digits of a credit card with X’s Format the credit card with dashes in the appropriate places There are many different approaches that can be taken to accomplish the above two tasks. The simplest approach […]

{ 6 comments }