File: /examples/parse_php.php

Description

Parsing PHP with QueryPath

This file contains an example of how QueryPath can be used to parse a PHP file. Any well-formed XML or HTML document can be parsed. Since PHP tags are contained inside of processor instructions, an XML parser can correctly parse such a file into a DOM. Consequently, you can use QueryPath to read, modify, and traverse PHP files.

This example illustrates how such a file can be parsed and manipulated.

Classes defined in this file

CLASS NAME

DESCRIPTION

Include/Require Statements

'../src/QueryPath/QueryPath.php' (line 24)

require : '../src/QueryPath/QueryPath.php'

Global Variables

Constants

Functions


Documentation generated on Sun, 25 Jul 2010 16:09:05 -0500 by phpDocumentor 1.4.3