require_once 'PHP/Compat.php';
mixed PHP_Compat::loadFunction (mixed $function)
mixed PHP_Compat::loadFunction
Loads a function, or an array of functions.
The name, or an array of names, of functions to load
mixed
Example 52-1. Loading a function with the class:
<?php require_once 'PHP/Compat.php'; // load file_put_contents PHP_Compat::loadFunction('file_put_contents'); // load str_split, array_chunk and file_get_contents PHP_Compat::loadFunction(array('str_split', 'array_chunk', 'file_get_contents')); ?>
You may also load a function without using the class.
Example 52-2. Loading a function manually:
<?php require_once 'PHP/Compat/Function/file_put_contents.php'; ?>
This function should be called statically.