I have a matrix¹²³ with the following structure (it's dynamic, may or may not contains those keys (or even more))
array(
"where" => array(
"data_col1": "val1",
"data_col2": "val2"
),
"like" => array(
"data_col3": "val3"
)
);
What I need to do is to find if $var_with_data_col_name exists or not.
Using array_key_exists I can check if "where" or "like" exist, but I couldn't find a way to check inside them for a specific key.
PS:
$var_with_data_col_name would be a variable with one of the following strings:
- data_col1
- data_col2
- data_col3