PHP code example of mamadou-aly-sy / bag
1. Go to this page and download the library: Download mamadou-aly-sy/bag library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mamadou-aly-sy / bag example snippets
= new \MamadouAlySy\ParameterBag();
$bag->add('name', 'Mamadou');
$bag->has('name') // return true
count($bag) // return 1;