helpers.php 498 B

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