PHP Classes

Yii2 Array Storage package blog

Recommend this page to a friend!

Latest Yii2 Array Storage package blog posts

  All package blogs All package blogs   Yii2 Array Storage Yii2 Array Storage   Blog Yii2 Array Storage package blog   Post article Post article  

1. How to Use PHP Arrays to Implement Lists with Keys that Can Only Be Set Once and Can Have Default Values

Updated on: 2023-10-19

Posted on:

Arrays are a frequently used data type that PHP developers use in their code.

Often, associative arrays are used to store lists of values.

This package provides an alternative class that implements lists of values that can assume default values when retrieving list values that are not set.

It can also prevent setting a list value that is already set.

These features allow the implementation of more restricted lists of values in PHP.


Blog More ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)


  All package blogs All package blogs   Yii2 Array Storage Yii2 Array Storage   Blog Yii2 Array Storage package blog   Post article Post article