# Array search

**URL:** <https://forum.kirupa.com/t/array-search/269830>\
**Category:** Uncategorized\
**Created:** [September 2, 2008, 5:36am UTC](https://forum.kirupa.com/t/array-search/269830 "2008-09-02T05:36:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kishore2k9](https://avatars.discourse-cdn.com/v4/letter/k/74df32/32.png) [@kishore2k9](https://forum.kirupa.com/u/kishore2k9)\
**Post date:** [September 2, 2008, 5:36am UTC](https://forum.kirupa.com/t/array-search/269830/1 "2008-09-02T05:36:53Z")

</div>

hi,  
how to search the string value in array.  
ex: if my array contains  
$ar1=array(“activate”=\>“1”,“activated”=\>“3”,“provide”=\>“1”,“activating”=\>“2”,“providing”=\>“3”,“provided”=\>“2”,“hello”=\>“6”);  
then how to search the string word activate exists in array or not  
from the above array it has search for activate and display the result as 3 times bcz activate is there exists three rimes. how to find
