How to check how many times something occurs in a string in PHP

Posted by John on Stack Overflow See other posts from Stack Overflow or by John
Published on 2010-03-23T06:26:31Z Indexed on 2010/03/23 6:33 UTC
Read the original article Hit count: 228

Filed under:

I want to check how many instances of the letter "a" appears in a certain string. What is the function for this? I need it to return an integer value.

© Stack Overflow or respective owner

Related posts about php