ArchiveAugust 2014

PHP VIN Code Validation

P

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. class VehicleUtilities{ public static function validateVin($vin){ $vin=strtoupper($vin); //17 Chars <> I,O,Q - Last 4...

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

Archives