PHP code example of atomino / util-dot-notation
1. Go to this page and download the library: Download atomino/util-dot-notation library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
atomino / util-dot-notation example snippets
DotNotation::extract(array $flattenedData):array;
DotNotation::flatten(array $hierarchicalData):array;
$data = [
"alfa.beta.gamma" => "1",
"alfa.beta.delta" => "2",
"alfa.omega" => "3"
];
$data = [
"alfa" => [
"beta" => [
"gamma" => 1,
"delta" => 2
],
"omega" => 3
]
];