note 87171 rejected from book.array by thiago

From: Date: Mon, 24 Nov 2008 11:40:35 +0000
Subject: note 87171 rejected from book.array by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-146864@lists.php.net to get a copy of this message
Note Submitter: arfan at micromerger dot com ---- hi to all friends, i need some help regarding Array functions. I want to calculate the number of occurrences of an array element for example $myarr=array('google','yahoo','gamil','yahoo','msn','yahoo','google'); now i want a function which tell me how much time a keyword found in array like $googlecount=foundarray('google',$myarr); and so i can get 2 . please help me if any one know about this problem. thanks

« previous php.notes (#146864) next »