PHP function to find the Word Occurance in a long String

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

stephenrodrics
New php-forum User
New php-forum User
Posts: 58
Joined: Thu Mar 14, 2013 6:10 am

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.

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

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

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



Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 2 guests

cron