PHP code example of deemru / pairs
1. Go to this page and download the library: Download deemru/pairs 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/ */
deemru / pairs example snippets
$pairs = new Pairs( __DIR__ . '/storage.sqlite', 'pairs', true );
$key = 1;
$value = 'Hello, World!';
$pairs->setKeyValue( $key, $value );
if( $pairs->getKey( $value ) !== $key ||
$pairs->getValue( $key ) !== $value )
exit( 1 );