-
-
Save younjin/6086583 to your computer and use it in GitHub Desktop.
ftfy
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
<?php | |
function isOntarioPostalCode($string){ | |
return preg_match("%[PKLNM][123456789][ABCEGHJKLMNPRSTVWXYZ]( )?\d[ABCEGHJKLMNPRSTVWXYZ][123456789]%i"), $string); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment