Count occurances of something.

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
reinheitphp
New php-forum User
New php-forum User
Posts: 12
Joined: Sun Jul 13, 2003 10:58 pm
Contact:

Mon Jul 28, 2003 10:02 pm

How could I count how many times a certain word, number, or character, etc. appears in a file?
I can open a file and read it and display the information or write to it etc.
But what would be the little snippet of php that would count how many times something I specify occurs?
http://drale.com - webportal | http://drale.com/team/ - web designers

User avatar
swirlee
Moderator
Moderator
Posts: 2257
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back
Contact:

Tue Jul 29, 2003 5:47 am

Image

reinheitphp
New php-forum User
New php-forum User
Posts: 12
Joined: Sun Jul 13, 2003 10:58 pm
Contact:

Tue Jul 29, 2003 5:14 pm

Thanks. 8)
http://drale.com - webportal | http://drale.com/team/ - web designers

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests