- strpos: documentation ( source)
- md5: documentation ( source)
<?php
$key = "yzbqklnj";
$num = 0;
$finished = false;
while(!finished){
$num++;
echo $num;
$hash = md5($key.$num);
if(strpos($hash,"00000")>0){
$finished = true;
}
}