Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
# Vehicle Identification Number (VIN) validation function written in PHP. Validates against the ISO 3779 standard. | ||
# Vehicle Identification Number (VIN) | ||
|
||
Validation function written in PHP. Validates against the ISO 3779 standard. | ||
|
||
See: http://en.wikipedia.org/wiki/Vehicle_identification_number | ||
|
||
Example: | ||
|
||
``` | ||
if (is_vin('1M8GDM9AXKP042788')) { | ||
echo 'valid'; | ||
} else { | ||
echo 'not valid'; | ||
} | ||
``` | ||
|
||
This function will work for any US/Canadian automobile made after January 1st, 1980. | ||
|
||
Tested with PHP 5.2.x however it should work with older versions. |