Spaces-API/aws/JmesPath/JmesPath.php
Devang Srivastava eefa32741e spaces.php
2017-12-07 21:23:18 +05:30

18 lines
378 B
PHP

<?php
namespace 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|null
*/
if (!function_exists(__NAMESPACE__ . '\search')) {
function search($expression, $data)
{
return Env::search($expression, $data);
}
}