19 lines
414 B
PHP
19 lines
414 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace DeliciousBrains\WP_Offload_Media\Aws3\JmesPath;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Returns data from the input array that matches a JMESPath expression.
|
||
|
|
*
|
||
|
|
* @param string $expression Expression to search.
|
||
|
|
* @param mixed $data Data to search.
|
||
|
|
*
|
||
|
|
* @return mixed
|
||
|
|
*/
|
||
|
|
if (!\function_exists(__NAMESPACE__ . '\\search')) {
|
||
|
|
function search($expression, $data)
|
||
|
|
{
|
||
|
|
return Env::search($expression, $data);
|
||
|
|
}
|
||
|
|
}
|