I am trying to use in_array or something like this for associative or more complex arrays.
This is a regular in_array
in_array('test', array('test', 'exists'));
in_array('test', array('not', 'exists'));
I'm trying to find a pair for example, a combination of "test" and "value". I can configure combos to search by array('test','value')or 'test'=>'value'as needed. But how can I do this search if the desired array is
array('test'=>'value', 'exists'=>'here');
or
array( array('test','value'), array('exists'=>'here') );
source
share