How to prepared statement for IN clause if there is mixed type array?
问题 I am trying to write prepared statement for IN clause where array is mixed array. i am able to build array for 'call_user_func_array()' but i am not able to prepare statement. no output is showing. this is my php code: $search1 = array('pune','india','2014','mumbai','2015'); print_r($search1); echo $param = implode(",",$search1); $ids = array_flip(array_flip(explode(',', $param))); var_dump($ids); $type1 = array(); foreach ($ids as $element) { if(is_string($element)) { $type1[] ='s'; }elseif