<?php $num = "636-227-8787"; if (preg_match('/^.*?(\d{3}).*?(\d{3}).*?(\d{4}).*/', $num, $matches)) { var_dump($matches); }
You have javascript disabled. You will not be able to edit any code.