# Binary array search

**URL:** <https://forum.kirupa.com/t/binary-array-search/282830>\
**Category:** Uncategorized\
**Created:** [February 26, 2009, 9:40pm UTC](https://forum.kirupa.com/t/binary-array-search/282830 "2009-02-26T21:40:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NeoDreamer](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@NeoDreamer](https://forum.kirupa.com/u/NeoDreamer)\
**Post date:** [February 26, 2009, 9:40pm UTC](https://forum.kirupa.com/t/binary-array-search/282830/1 "2009-02-26T21:40:44Z")

</div>

Does anyone know if PHP’s search functions (in\_array, array\_search, …) do binary search? I have the entire English dictionary stored in an array and am considering writing my own binary search function if PHP only does slow linear search.
