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"

or somehow like that... is there a predefined function for that and if not, how do I 
go about creating my own? 

Thanks in advance,

Raphael Pirker
[EMAIL PROTECTED]

Reply via email to