Skip to content

Instantly share code, notes, and snippets.

Edvard Vajgl abecko

View GitHub Profile
abecko / verifyIC.php
Created Oct 20, 2016 — forked from dg/verifyIC.php
Ověření rodného čísla a IČ
View verifyIC.php
function verifyIC($ic)
// be liberal in what you receive
$ic = preg_replace('#\s+#', '', $ic);
// má požadovaný tvar?
if (!preg_match('#^\d{8}$#', $ic)) {
return FALSE;
You can’t perform that action at this time.