JavaScript Editor Javascript validator     Web page editor 



PHP_CompatInfo_Parser::parseData()

PHP_CompatInfo_Parser::parseData()  -- Parse a data source

Synopsis

require_once 'PHP/CompatInfo/Parser.php';

array PHP_CompatInfo_Parser::parseData (mixed $dataSource, array [$options = array()])

Description

Parse a data source with auto detect ability. This data source, may be one of these follows: a directory, a file, a string (chunk of code), an array of multiple origin.

Each of five parsing functions support common and specifics options.

* Common options :

* parseArray, parseDir|parseFolder, specific options :

* parseArray specific options :

* parseDir|parseFolder specific options :

Parameter

mixed $dataSource

The data source (may be file, dir, string, or array)

array $options

An array of options. See above.

Return value

returns array or false on error

Throws

throws no exceptions thrown

Since

since version 1.8.0b2 (2008-06-03)

Note

This function can not be called statically.

Example

see PHP_CompatInfo::parseData() example




JavaScript Editor Javascript validator     Web page editor