You can use namespaces to override existing function names:
namespace blarg;
function basename() {
return 'whatever';
}
$base = basename();
I.e., any call to basename() within the blarg namespace will use your new version of the function.
More Related Contents:
- PHP syntax for dereferencing function result
- Deprecated: mysql_connect() [duplicate]
- How can I handle the warning of file_get_contents() function in PHP?
- PHP mail function doesn’t complete sending of e-mail
- What is the difference between a language construct and a “built-in” function in PHP?
- In php, is 0 treated as empty?
- Are PHP functions case sensitive?
- How to get JavaScript function data into a PHP variable
- Can you store a function in a PHP array?
- How would I skip optional arguments in a function call?
- `static` keyword inside function?
- PHP Default Function Parameter values, how to ‘pass default value’ for ‘not last’ parameters?
- Shorten long numbers to K/M/B?
- Can I use PHP reserved names for my functions and classes?
- PHP function with variable as default value for a parameter
- Function list of php file
- calling function inside preg_replace thats inside a function
- Function inside a function.?
- PHP syntax for dereferencing function result
- PHP readfile vs. file_get_contents
- How to override built-in PHP function(s)?
- In PHP, how do I check if a function exists?
- What’s difference between __construct and function with same name as class has? [duplicate]
- PHP: $_GET and $_POST in functions?
- Is it possible to replace (monkeypatch) PHP functions?
- strcmp equivelant for integers (intcmp) in PHP
- How do I get the function name inside a function in PHP?
- When to use a Class vs. Function in PHP
- Changing a global variable from inside a function PHP
- How can you use php in a javascript function [duplicate]