<?php $str = "1111 2222 3333 4444 5555 6666"; if (preg_match('~\A(?:\d{4}\s?)+\z~', $str)) { print_r(preg_split('~\s~', $str)); }
You have javascript disabled. You will not be able to edit any code.