<?php $str = "1110001110000"; Echo "there is " .substr_count($str, "0") ." Zeros \n"; Echo "there is " .substr_count($str, "1") ." ones \n";
You have javascript disabled. You will not be able to edit any code.