The classes and interfaces in this group are contained in the c-code of ext/SPL.
Count the elements in an iterator.
- Since
- PHP 5.1
- Returns
- number of elements in an iterator
Definition at line 242 of file spl.php.
| iterator_to_array |
( |
Traversable |
$it, |
|
|
|
$use_keys = true |
|
) |
| |
Copy iterator elements into an array.
- Since
- PHP 5.1
- Parameters
-
| it | iterator to copy |
| use_keys | whether touse the keys |
- Returns
- array with elements copied from the iterator
Definition at line 252 of file spl.php.
| spl_autoload |
( |
string |
$class_name, |
|
|
string |
$file_extensions = NULL |
|
) |
| |
Default implementation for __autoload()
- Since
- PHP 5.1
- Parameters
-
| class_name | name of class to load |
| file_extensions | file extensions (use defaults if NULL) |
Definition at line 180 of file spl.php.
| spl_autoload_call |
( |
string |
$class_name | ) |
|
Manual invocation of all registerd autoload functions.
- Since
- PHP 5.1
- Parameters
-
| class_name | name of class to load |
Definition at line 188 of file spl.php.
| spl_autoload_extensions |
( |
|
$file_extensions | ) |
|
Register and return default file extensions for spl_autoload.
- Since
- PHP 5.1
- Parameters
-
| file_extensions | optional comma separated list of extensions to use in default autoload function. If not given just return the current list. |
- Returns
- comma separated list of file extensions to use in default autoload function.
Definition at line 199 of file spl.php.
| spl_autoload_functions |
( |
| ) |
|
Return all registered autoload functionns.
- Since
- PHP 5.1
- Returns
- array of all registered autoload functions or false
Definition at line 207 of file spl.php.
| spl_autoload_register |
( |
string |
$autoload_function = "spl_autoload", |
|
|
|
$throw = true |
|
) |
| |
Register given function as autoload implementation.
- Since
- PHP 5.1
- Parameters
-
| autoload_function | name of function or array of object/class and function name to register as autoload function. |
| throw | whether to throw or issue an error on failure. |
Definition at line 217 of file spl.php.
| spl_autoload_unregister |
( |
string |
$autoload_function = "spl_autoload" | ) |
|
Unregister given function as autoload implementation.
- Since
- PHP 5.1
- Parameters
-
| autoload_function | name of function or array of object/class and function name to unregister as autoload function. |
Definition at line 226 of file spl.php.
Return an array of classes and interfaces in SPL.
- Returns
- array containing the names of all clsses and interfaces defined in extension SPL
Definition at line 234 of file spl.php.