更新
This commit is contained in:
24
vendor/adbario/php-dot-notation/src/helpers.php
vendored
Normal file
24
vendor/adbario/php-dot-notation/src/helpers.php
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* Dot - PHP dot notation access to arrays
|
||||
*
|
||||
* @author Riku Särkinen <riku@adbar.io>
|
||||
* @link https://github.com/adbario/php-dot-notation
|
||||
* @license https://github.com/adbario/php-dot-notation/blob/2.x/LICENSE.md (MIT License)
|
||||
*/
|
||||
|
||||
use Adbar\Dot;
|
||||
|
||||
if (! function_exists('dot')) {
|
||||
/**
|
||||
* Create a new Dot object with the given items and optional delimiter
|
||||
*
|
||||
* @param mixed $items
|
||||
* @param string $delimiter
|
||||
* @return \Adbar\Dot
|
||||
*/
|
||||
function dot($items, $delimiter = '.')
|
||||
{
|
||||
return new Dot($items, $delimiter);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user