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 check how many times the letter 1 occurs in there...

$occured = check_occurance(1,$number);

$occured would now return "2"




-- 
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]

Reply via email to