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.
Parameter
- string $version
The version of PHP to load components until.
Return value
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.
|
Example
Example 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
This function should be called
statically.