Contact: aviboots(AT)netvision.net.il
40,891 questions
53,304 answers
573 users
$str = "10100011101"; if (strspn($str , '01') == strlen($str)) { echo 'Yes'; } else { echo 'No'; } /* run: Yes */