PHP code example of kuria / parser
1. Go to this page and download the library: Download kuria/parser 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/ */
kuria / parser example snippets
use Kuria\Parser\Parser
use Kuria\Parser\Parser
$iniParser = new IniParser()
class CustomParser extends Parser
{
const CHAR_TYPE_MAP = [
'-' => self::C_STR,
'.' => self::C_STR,
] + parent::CHAR_TYPE_MAP; // inherit everything else
}
// usage example
$parser = new CustomParser('foo-bar.baz')