I have this code
$link = file_get_contents("file.txt");
if(preg_match_all('/\b[0-9]{3}\s*[-]?\s*[0-9]{3}\s*[-]?\s*[0-9]{4}\b/', $link, $content, PREG_PATTERN_ORDER)){
$content = array_unique($content[0]);
foreach($content as $key=>$value)
{
echo $value;
echo "<br>";
}
}
It always print out this number 1477276084 even that number isnt in the text file
the content of the textfile is
Name:
Phone: 1477276084
Name:
Phone: 2958692011
Name:
Phone: 2958692011
Name:
Phone: 2958692011
Name:
Phone: 9954129334
Name:
Phone: 123-812-4181
Name:
Phone: 609-182-5123
Name:
Phone: 609-182-5123
Name:
Phone: 609-182-5123
Name:
Phone: 609-182-5123
I even tried to change the file.txt into website and still the number is there