- print_r: documentation ( source)
- preg_match_all: documentation ( source)
<?php
$text = " Jack in the Box Phillip Kariuki 2063643485
Ceramic Designs Ltd Cindy Mccreight 9146905200
United Water New Rochelle Joe Bellizzi 9146934517";
preg_match_all("/\d{10}/", $text, $matches);
print_r($matches[0]);