Location: PHPKode > scripts > XCS Parser > xcs-parser/examples/basic.php
<?php
/**
 * A basic test/demo file for XcsParser class.
 */

error_reporting(E_ALL | E_STRICT);
include '../lib/XcsParser_class.php';

$css = file_get_contents('../etc/style.css');
$sp = new XcsParser($css);

echo $sp->parse()->getCss();
?>
Return current item: XCS Parser