> $number = 123782301247832;
> Now, I'd like to check how many times the letter 1 occurs in there...
Try this:
$number = "123782301247832";
$res = count_chars($number, 1);
$outstr = "";
foreach($res as $key => $val) {
if ($outstr != "")
$outstr .= ", ";
$outstr .= $val." '".htmlentities(chr($key))."'s";
}
echo "<br>'$number' contains $outstr";
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]