PHP_Compat::loadVersion() -- Load all components, or all components until a given version of PHP
Description
Load all components, or all components until a given version of PHP.
Paramètres
- chaîne de caractères $version
The version of PHP to load components until.
Valeur retournée
array
|
An associative array of boolean values. The key is the name of the
component loaded.
The value for whether or not the component was loaded correctly.
|
Exemple
Exemple 58-1. Loading all components:
<?php
require_once 'PHP/Compat.php';
$components = PHP_Compat::loadVersion();
// To see which components were loaded
print_r($components);
?>
|
This example would show a long list of components which
were loaded.
|
Note
Cette fonction devrait être appelée de façon statique.