PHP function to find the Word Occurance in a long String

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 64
Joined: Thu Mar 14, 2013 6:10 am

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.

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

Wed Jul 10, 2013 12:40 am

Post Reply