Jump to content

[SOLVED] array or string search


asmith

Recommended Posts

how can i search a string or an array to find out how many a word or a value has been repeated ?

 

for example : 

 

$a = array ("a","b","c","a","a","c","d");

$b = "a,b,b,b,c,c,a,a,a,d";

 

how can i find how many "a" are in those ?

(actuallly with implode and explode , it will be one question)

Link to comment
https://forums.phpfreaks.com/topic/79802-solved-array-or-string-search/
Share on other sites

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.