PHP code example of kickupx / hsc

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

    

kickupx / hsc example snippets


 $code =
      "
      <<<<<< Config
         Text, Text
         ===========
         More More
      >>>>>>> /Config

      <<<<<<<<< Super
         Start, Start
         ===============
         End End
      >>>>>>>>> /Super

 ";
 $parser = new Parser();
 $doc = $parser->parse($code);
 

 $doc->get('Config');
 $doc->get('Config', 'default start', 'default end');
 

 $doc->addEntry(new Entry('Config');
 $doc->addEntry(new Entry('Config', 'default start', 'default end'));
 

 $doc->__toString();