| 1 | <?php |
| 2 | namespace JmesPath; |
| 3 | |
| 4 | /** |
| 5 | * Returns data from the input array that matches a JMESPath expression. |
| 6 | * |
| 7 | * @param string $expression Expression to search. |
| 8 | * @param mixed $data Data to search. |
| 9 | * |
| 10 | * @return mixed |
| 11 | */ |
| 12 | if (!function_exists(__NAMESPACE__ . '\search')) { |
| 13 | function search($expression, $data) |
| 14 | { |
| 15 | return Env::search($expression, $data); |
| 16 | } |
| 17 | } |