PEAR logo

PHP_CompatInfo : The Definitive Guide

Name

PHP_CompatInfo::parseArray — Parse an Array of Files

Synopsis

      require_once 'PHP/CompatInfo.php';
     
array|FALSE PHP_CompatInfo::parseArray( $files,  
  $options = array());  
array   $files;
array   $options = array();

Description

You can parse an array of Files or Strings, to parse strings, $options['is_string'] must be set to true

Parameter

array $files

Array of file names or code strings

array $options

An array of options where:

  • 'file_ext' Contains an array of file extensions to parse for PHP code. Default: php, php4, inc, phtml

  • 'debug' Contains a boolean to control whether extra ouput is shown.

  • 'ignore_functions' Contains an array of functions to ignore when calculating the version needed.

  • 'ignore_constants' Contains an array of constants to ignore when calculating the version needed.

  • 'ignore_files' Contains an array of files to ignore. File names are case insensitive.

  • 'is_string' Contains a boolean which says if the array values are strings or file names.

  • 'ignore_extensions' Contains an array of php extensions to ignore when calculating the version needed.

  • 'ignore_versions' Contains an array of php versions to ignore when calculating the version needed.

Throws

throws no exceptions thrown

Note

since 0.7.0

This function can not be called statically.

PHP_CompatInfo : The Definitive Guide v 1.4.0 : September 27, 2006