File: /examples/simple_example.php

Description

Basic example of QueryPath usage.

This two-line example exhibits basic use of QueryPath. It creates a new HTML document and adds the typical 'Hello World' text to the body. It then writes that information to standard out (which is flushed to a web browser in most cases.)

The important methods covered here are qp(), which is the QueryPath factory function, QueryPath::find(), which is the primary searching function, and QueryPath::writeHTML(), which is a utility function.

This file is fully explained in the official QueryPath tutorial, located at https://fedorahosted.org/querypath/wiki/QueryPathTutorial

Classes defined in this file

CLASS NAME

DESCRIPTION

Include/Require Statements

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

require_once : '../src/QueryPath/QueryPath.php'

Global Variables

Constants

Functions


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