I have list of items for example, I want my in array to give me results both on $list1= ['apple', 'ball ']; $list2= ['apple', 'ball'];
in_array('ball',$list1)
its okay for second case but not working for first case because there is space after ball
if return false I mean i don't want exact match but at least want this to skip spaces which are present in the array element list!