Skip to content

atk14/Dictionary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dictionary

Dictionary implementation used in the ATK14 Framework

Basic usage

$dictionary = new Dictionary([
  "key1" => "val1",
  "key2" => "val2",
  "key3" => null, 
]);

$dictionary->getValue("key1"); // "val1"
$dictionary->getValue("key3"); // null
$dictionary->getValue("key4"); // null

$dictionary["key1"]; // "val1"
$dictionary["key3"]; // null
$dictionary["key4"]; // null

$dict->defined("key1")); // true
$dict->defined("key3")); // false
$dict->defined("key4")); // false

$dict->keyPresents("key3")); // true
$dict->keyPresents("key4")); // false

Installation

Use the Composer to install Dictionary

cd path/to/your/project/
composer require atk14/dictionary

Licence

Dictionary is free software distributed under the terms of the MIT license

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages