Make a search functionality without database involvement using only array e.g. if your array contain ('a','ab','abc','bca','bcd') then by putting 'a' into search field yield the results like 'a','ab','abc','bca'. also make a checkbox on search page which yield an exact value e.g. if u search 'a' then it should return only 'a'. also handle if search doesn't yield any result.