PHP code example of arcanisgk / boh-basic-ouput-handler

1. Go to this page and download the library: Download arcanisgk/boh-basic-ouput-handler 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/ */

    

arcanisgk / boh-basic-ouput-handler example snippets



use \IcarosNet\BOHBasicOuputHandler as Output;


//you can define the theme to be used in the output in web or cli:
$output = new Output\Output_Handler('monokai'); //in the class Instance or
$output->Theme('monokai');                      //call the method Theme


$output->output($example_array);            // send the variable and library would check the best output for you.
$output->output($example_array,'web');      // or send a second argument for enviroment 'web' or 'cli'.
$output->output($example_array,'web',true); // if you need retrive the string instead of output send true in thirt param.
$output->output($example_array,'cli');      // the library support output for CLI enviroment.
$output->output($example_array,'cli',true); // an cli can retrive strings.