PHP code example of zegl / dson-php
1. Go to this page and download the library: Download zegl/dson-php 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/ */
zegl / dson-php example snippets
$example = array(
"many" => "wow",
"such" => array("foo", "doge", "inu")
);
echo DSON::encode($example);
$res = DSON::decode('such "many" is "wow" ! "such" is so "foo" and "doge" and "inu" many wow');
$res = DSON::decode('such "many" is "wow" ! "such" is so "foo" and "doge" and "inu" many wow', true);