$val) { if ($val === 0) { continue; } $arrResult[] = floor(substr_count($stdin, $key)/$val); } print(min($arrResult).PHP_EOL);