Check whether a number has consecutive 0’s in PHP

In this PHP Program, we will check if the given number has consecutive 0’s . PHP Program to check whether a number has a consecutive 0’s <?php function result($N, $K) {    $z = toK($N, $K);    if (check($z))        print(“Yes”);    else        print(“No”); }   function toK($N, $K) {    $w = 1;    $s = 0;    while ($N != …

Check whether a number has consecutive 0’s in PHP Read More »