Jump to content

[SOLVED] have function for count


retoto

Recommended Posts

You can use count_chars() which will return how many times each char appears.

You can also use substr_count() without the two optional parameters.

Of course, you can use preg_match_all() and stuff like that, but these two functions will get you your results much faster.

 

Orio.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.