Re: [PHP-DB] number of occurences

2001-06-24 Thread Hugh Bothwell
> $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 .= ", ";

Re: [PHP-DB] number of occurences

2001-06-24 Thread Serdar Soydemir
Hi, See Manual: http://www.php.net/manual/pt_BR/function.substr-count.php -- Serdar www.php.org.tr ""Raphael Pirker"" <[EMAIL PROTECTED]>, haber iletisinde sunlari yazdi:[EMAIL PROTECTED] Hi, I have a long number which I get out of a database. $number = 123782301247832; Now, I'd like to ch