| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Dot - PHP dot notation access to arrays |
| 5 |
* |
| 6 |
* @author Riku Särkinen <riku@adbar.io> |
| 7 |
* @link https://github.com/adbario/php-dot-notation |
| 8 |
* @license https://github.com/adbario/php-dot-notation/blob/3.x/LICENSE.md (MIT License) |
| 9 |
*/ |
| 10 |
|
| 11 |
use Adbar\Dot; |
| 12 |
|
| 13 |
if (! function_exists('dot')) { |
| 14 |
/** |
| 15 |
* Create a new Dot object with the given items |
| 16 |
* |
| 17 |
* @param mixed $items |
| 18 |
* @param bool $parse |
| 19 |
* @param non-empty-string $delimiter |
| 20 |
* @return \Adbar\Dot<array-key, mixed> |
| 21 |
*/ |
| 22 |
function dot($items, $parse = false, $delimiter = ".") |
| 23 |
{ |
| 24 |
return new Dot($items, $parse, $delimiter); |
| 25 |
} |
| 26 |
} |
| 27 |
|