php-dot-notation icon indicating copy to clipboard operation
php-dot-notation copied to clipboard

Dot notation access to PHP arrays

Results 6 php-dot-notation issues
Sort by recently updated
recently updated
newest added

Error Message: PHP Deprecated: Return type of Adbar\Dot::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/dyn/AliGitRepo/openapi-sdk-php-client/vendor/adbario/php-dot-notation/src/Dot.php on...

I noticed there was an open issue for this: https://github.com/adbario/php-dot-notation/issues/19. I also needed this for a private project I'm working on recently. Thought I'd kill two birds with one stone...

I think it's quite handy to have the possibility to rebase the non-associative arrays when deleting an element.

It would be nice to be able to unflatten a dot notated array.

Considering the following array: ```php $arr = array( 'foo' => array( 'bar' => 'inner value' ), 'fooObj' => (object) array( 'objAttribute' => 'some value' ), ); $dot = new \Adbar\Dot($arr);...

I'm wondering if you'd be open to a configurable separator. I'd offer a pull request on 2.X non-BC breaking, which is what we're currently using, for a 2.5 version. While...