ArchiveAugust 2014

PHP VIN Code Validation


Since 1981 Vehicle Identification Numbers in North America have followed a standard which provides a check digit to aid in the identification of transcription errors. Reproduced below is my PHP implementation that calculates a checksum and compares it to the check digit. ‌PHP VIN Code Validator class VehicleUtilities{ public static function validateVin($vin){ $vin=strtoupper($vin); //17 Chars...

Chris Peterson

Chris Peterson

As a Web Application Developer & Elephant Trainer I have been putting the PHP mascot to work for more than a decade. I specialize in back-end development and use the LAMP stack to craft software that frees human beings to spend their time on more productive and rewarding things.

Recent Posts

Recent Comments