PHP_Compat::loadVersion() -- Load all components, or all components until a given version of PHP
Beschreibung
Load all components, or all components until a given version of PHP.
Parameter
- string $version
The version of PHP to load components until.
Rückgabewert
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.
|
Beispiel
Beispiel 53-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.
|
Hinweise
Diese Methode sollte statisch
aufgerufen werden..