Skip to content

Instantly share code, notes, and snippets.

@abecko
abecko / verifyIC.php
Created October 20, 2016 09:25 — forked from dg/verifyIC.php
Ověření rodného čísla a IČ
<?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;