ISBN Validator Documentation

Requires PHP 4 or later

Description

boolean we_validateIsbn( string isbn )

The function validates an International Standard Book Number (ISBN) system code. Supported are ISBN-10 and ISBN-13. The function is able to handle codes that contain hyphens or spaces.

NOTE: Starting on January 1, 2007 ISBN-10 has been replaced by ISBN-13.

Examples

require_once 'isbn.php';

// Don't make me think: A common sense approach to web usability (2nd edition).
we_validateIsbn('0-321-34475-8'); // returns true

// At Work: Neutelings Riedijk Architects.
we_validateIsbn('90-6450-508-X'); // returns true

// At Work: Neutelings Riedijk Architects.
we_validateIsbn('978 90 6450 508 9'); // returns true

License

The package is released under the MIT License

Download

Reference

http://www.isbn-international.org/
http://www.walterebert.com/code/
http://en.wikipedia.org/wiki/ISBN