how to filter 12 digits integers in php
Moderator: General Moderators
how to filter 12 digits integers in php
how to filter the 12 digits integers in php can u help me buy giving the solution
Re: how to filter 12 digits integers in php
Code: Select all
<?php
if (preg_match("[0-9]{12}", $data, $matches)) {
echo "Match was found <br />";
echo $matches[0];
}
?>
Last edited by Benjamin on Wed Jun 24, 2009 10:40 am, edited 1 time in total.
Reason: Added [code=php] tags.
Reason: Added [code=php] tags.