<?php
"8-911-50-656-56",
"89115065656",
"8(911)-506 56 56",
"02",
"89115065656 позвать Люду");
$regexp = "/[0-9](\s|\-|[(])*[0-9]{3}(\s|\-|[)])*[0-9]{2,3}(\-|\s)*[0-9]{2,3}(\-|\s)*[0-9]{2}/";
for($i=0;$i<5;$i++){
echo $tel[$i]."\n";
echo "Правильно\n";
}else{
echo "Не правильно\n";
}
}
// your code goes here
PD9waHAKZXJyb3JfcmVwb3J0aW5nKC0xKTsKJHRlbCA9IGFycmF5KAoiOC05MTEtNTAtNjU2LTU2IiwKIjg5MTE1MDY1NjU2IiwKIjgoOTExKS01MDYgNTYgNTYiLAoiMDIiLAoiODkxMTUwNjU2NTYg0L/QvtC30LLQsNGC0Ywg0JvRjtC00YMiKTsKJHJlZ2V4cCA9ICIvWzAtOV0oXHN8XC18WyhdKSpbMC05XXszfShcc3xcLXxbKV0pKlswLTldezIsM30oXC18XHMpKlswLTldezIsM30oXC18XHMpKlswLTldezJ9LyI7CmZvcigkaT0wOyRpPDU7JGkrKyl7CiAgZWNobyAkdGVsWyRpXS4iXG4iOwogIGlmKHByZWdfbWF0Y2goJHJlZ2V4cCwkdGVsWyRpXSkpewogIGVjaG8gItCf0YDQsNCy0LjQu9GM0L3QvlxuIjsKICB9ZWxzZXsKICBlY2hvICLQndC1INC/0YDQsNCy0LjQu9GM0L3QvlxuIjsKICAgIH0KICAKICAKfQovLyB5b3VyIGNvZGUgZ29lcyBoZXJl