Last active
January 17, 2016 04:20
-
-
Save bpteam/5697b045529f4e921d1a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require "vendor/autoload.php"; | |
use bpteam\Parser\Phone\Phone; | |
$phone = new Phone('RU'); | |
$text = 'Сдаются 1-,2- и 3-комнатные квартиры, на любой срок по часам . | |
Все удобства, кабельное ТВ, Wi-Fi, стиральная машина-автомат, посуда, | |
постельное бельё. Командированным скидки. Отчетные 8 905 111-22-33 | |
документы предоставляем .'; | |
$number = current($phone->find($text)); | |
var_dump($number); //79051112233 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment