I have a data structure like that:
Array(
[494] => Array(
[meta_key] => course_494_access_from
[expires_in] => 95
),
[498] => Array(
[meta_key] => course_498_access_from
[expires_in] => 122
),
[502] => Array(
[meta_key] => course_502_access_from
[expires_in] => 30
),
[506] => Array(
[meta_key] => course_506_access_from
[expires_in] => 365
)
)
and I like to ask, if there is a way to get the expires_in value by searching the course_502_access_from
So, in example, I like to know if there is a way to perform an array search in the given structure, by usign the term course_502_access_from and then get the value 30 that corresponds to sub array key expires_in.