mirror of
https://github.com/SociallyDev/Spaces-API.git
synced 2025-03-12 05:35:22 -07:00
* Simplifies & beautifies everything * Introduces a new Class system. * Errors are defaulted to AWS's handler. * New function names & more efficient handling. * Should fix a majority of the errors. Please read the README for more!
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);
|
|
}
|
|
}
|