mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-26 14:40:29 +01:00
18 lines
373 B
PHP
18 lines
373 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
|
|
*/
|
|
if (!function_exists(__NAMESPACE__ . '\search')) {
|
|
function search($expression, $data)
|
|
{
|
|
return Env::search($expression, $data);
|
|
}
|
|
}
|