PHP Classes

How to Use PHP Object Keys Using Dot Notation Strings to Quickly Access Nested Objects and Arrays - Nested PHP Accessor package blog

Recommend this page to a friend!
  All package blogs All package blogs   Nested PHP Accessor Nested PHP Accessor   Blog Nested PHP Accessor package blog   RSS 1.0 feed RSS 2.0 feed   Blog How to Use PHP Object...  
  Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)  

Author:

Updated on: 2023-04-20

Posted on: 2023-04-20

Package: Nested PHP Accessor

Dot notation is a convention to define strings that can specify the position of a value that makes part of a nested array or object.

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.




Loaded Article

About the Nested PHP Accessor Package

The package Nested PHP Accessor is one of the few PHP packages that was considered notable recently because it does something that is worth paying attention.

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

Conclusion

The Nested PHP Accessor can be downloaded from download page or be installed using the PHP Composer tool following instructions in the Composer install instructions page.

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:

FacebookGmail
HotmailStackOverflow
GitHubYahoo


Comments:

No comments were submitted yet.




  Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)  
  All package blogs All package blogs   Nested PHP Accessor Nested PHP Accessor   Blog Nested PHP Accessor package blog   RSS 1.0 feed RSS 2.0 feed   Blog How to Use PHP Object...