PHP_Compat
[ class tree: PHP_Compat ] [ index: PHP_Compat ] [ all elements ]

Class: PHP_Compat

Source Location: /PHP_Compat-1.4.0/Compat.php

Class Overview


Provides missing functionality in the form of constants and functions for older versions of PHP


Author(s):

Version:

  • $Revision: 1.19 $

Methods


Inherited Variables

Inherited Methods


Class Details

[line 34]
Provides missing functionality in the form of constants and functions for older versions of PHP

Optionally, you may simply include the file. e.g. require_once 'PHP/Compat/Function/scandir.php';

  • Author: Aidan Lister <aidan@php.net>
  • Version: $Revision: 1.19 $


[ Top ]


Method Detail

loadConstant   [line 72]

bool|array loadConstant( string|array $constant)

Load a constant, or array of constants
  • Return: TRUE if loaded, FALSE if not

Parameters:

string|array   $constant   —  The constant or constants to load

[ Top ]

loadFunction   [line 42]

bool|array loadFunction( string|array $function)

Load a function, or array of functions
  • Return: TRUE if loaded, FALSE if not

Parameters:

string|array   $function   —  The function or functions to load

[ Top ]

loadVersion   [line 100]

array loadVersion( [string $version = null])

Load components for a PHP version
  • Return: An associative array of component names loaded

Parameters:

string   $version   —  PHP Version to load

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:20:35 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.