Author: Manuel Lemos
Updated on: 2023-04-20
Posted on: 2023-04-20
Package: Nested PHP Accessor
Using the dot notation can simplify the way you can access the array or objects using strings instead of the usual syntax that PHP provides to access element values that may exist in deep locations of the
This package provides classes with functions that can access array or object elements using dot notation strings to specify the elements' path.
About the Nested PHP Accessor Package
The basic purpose is: Get and set values of nested arrays or objects
Here follows in more detail what it does:
This package can get and set values of nested arrays or objects.
It can take an object or an array as a parameter to access the values of its elements.
The package provides accessor functions that take a string parameter that defines the path of the array or object element you want to access.
The path string uses the dot notation that separates the names of the elements and parent elements.
Currently, the package provides accessor functions to:
- Get the value of an element
- Set the value of an element
- Check if there is an element in a position with the given path
- Check if an element is set to a non-null value
- Append new values to the end of a given element
- Delete elements with the given path
This package was considered notable for implementing its benefits in a way that is worth noticing.
Notable PHP packages can be often considered innovative. If this package is also innovative, it can be nominated to the PHP Innovation Award and the author may win prizes and recognition for sharing innovative packages.
If you also developed your own notable or innovative packages consider sharing them, so you can also earn more visibility for your package as well nice prizes.
One nice prize that many PHP developers want and you may like is the PHP elePHPant mascot plush.
You need to be a registered user or login to post a comment
Login Immediately with your account on:
No comments were submitted yet.