Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

PHP function to find the Word Occurance in a long String

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

PHP function to find the Word Occurance in a long String

Postby stephenrodrics » Tue Jun 25, 2013 7:22 am

I want to find Word occurrence in a given string in PHP, is there any sample program which tells me this


suppose my string is "This is a world full of Humans, is there any one"

Suppose I want to know how many 'is' occurrences are there in above string how can I do so.
stephenrodrics
New php-forum User
New php-forum User
 
Posts: 53
Joined: Thu Mar 14, 2013 6:10 am

Re: PHP function to find the Word Occurance in a long String

Postby johnj » Wed Jul 10, 2013 12:40 am

johnj
php-forum Super User
php-forum Super User
 
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm


Return to PHP coding => General

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.