PHP code example of mrmmg / laravel_variables

1. Go to this page and download the library: Download mrmmg/laravel_variables 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/ */

    

mrmmg / laravel_variables example snippets


variable_set("prune_cache", true);
variable_set("dataset", [...]);

$dataset = variable_get("dataset", []);

//$dataset will be a array if found otherwise an empty array (default value) will be returned.

variable_del("dataset");