<?php $str = '+358 40 867 1180'; if(preg_match('', $str, $match)) { if(strlen($match[0]) === strlen($str)) { echo 'kyllä'; } else { echo 'ei'; } } else { echo 'eivv'; }
You have javascript disabled. You will not be able to edit any code.