PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Andres Dario Gutierrez Poveda   PHP Script Parser   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example of usage
Class: PHP Script Parser
Parse PHP scripts to detect usage bugs
Author: By
Last change:
Date: 20 years ago
Size: 567 bytes
 

Contents

Class file image Download
<?php
include('/path/to/Parser.class.php');

/** Function to make the output in alfabetic order. */
function asc($a,$b){
    return
strcmp($a['nombre'],$b['nombre']);
}

/** Instance the parser */
$parser = new Parser();

/** Set the path to the script, class to parse. */
$parser->set_archivo('/path/to/archive.php');

/** Set the colors of the headers, left panel and font of headers */
$parser->set_colores('#003399','#0099CC','#FFFFFF');

/** Parse the script, class. */
$parser->parse();

/** Show the report */
echo $parser->ver_reporte();
?>