定制 divineomega/array_undot 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

divineomega/array_undot

最新稳定版本:v4.1.0

Composer 安装命令:

composer require divineomega/array_undot

包简介

array_undot (the opposite of the array_dot helper function) expands a dot notation array into a full multi-dimensional array.

README 文档

README

Build Status Coverage Status StyleCI Packagist

This package provides a helper function called array_undot, which expands a dot notation array into a full multi-dimensional array. It is, therefore, the opposite of the array_dot helper function provided by Laravel.

Installation

To install, just run the following composer command.

composer require divineomega/array_undot 

The array_undot helper function will then be available globally in your project.

Usage

The following basic examples show how to use the array_undot helper function.

$dotNotationArray = ['products.desk.price' => 100]; $expanded = array_undot($dotNotationArray) // ['products' => ['desk' => ['price' => 100]]];
$dotNotationArray = ['products.desk.price' => 100, 'products.desk.name' => 'Oak Desk', 'products.lamp.price' => 15, 'products.lamp.name' => 'Red Lamp']; $expanded = array_undot($dotNotationArray) /* [  'products' => [  'desk' => [  'price' => 100,  'name' => 'Oak Desk'  ],  'lamp' => [  'price' => 15,  'name' => 'Red Lamp'  ]  ] ] */

统计信息

  • 总下载量: 122.97k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 24
  • 点击次数: 3
  • 依赖项目数: 4
  • 推荐数: 0

GitHub 信息

  • Stars: 24
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0-only
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固