chengkun
2025-09-09 1ff9e27b020822168a95edd83be567e7153837f3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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);
    }
}