calling own function on call of built-in function
Moderator: General Moderators
calling own function on call of built-in function
Can this be done? like on each call of OCIParse($conn,$sql) i would like my own function to be called.
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
Straight through PHP? No.
PHP isn't an object-based language, so it doesn't treat functions as objects. Therefore, they aren't externally editable.
However, if you go into the actual source, you may be able to add whatever functionality that you'd like to (and if it's a good improvement, submit it to the PHP project).
PHP isn't an object-based language, so it doesn't treat functions as objects. Therefore, they aren't externally editable.
However, if you go into the actual source, you may be able to add whatever functionality that you'd like to (and if it's a good improvement, submit it to the PHP project).
http://de2.php.net/runkit might be of interest.