Created
February 14, 2019 21:14
-
-
Save imelgrat/c6b5712a2e4028b13a09aac4e14b74a6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<?php | |
/** | |
* Example of the IsValidISBN function. | |
* | |
* @link https://imelgrat.me/php/php-validate-barcode-numbers/ | |
*/ | |
// ISBN assigned to "PHP in a Nutshell" by Paul Hudson, 2005 | |
echo 'Is ISBN "'.$code.'" valid? '. (BarcodeValidator::IsValidISBN('9780596100674') ? 'true' : 'false'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment