Re: Overriding core functions

From: Date: Tue, 22 Aug 2006 12:47:32 +0000
Subject: Re: Overriding core functions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-240993@lists.php.net to get a copy of this message
On Tue, 2006-08-22 at 18:39 +0700, Peter Lauri wrote: > I want to add some functionality when calling the mysql_query(): Why not simply wrap the mysql_query function in a php function? function query($whatever) { log($whatever); $ret = mysql_query($whatever); //do stuff after return $ret; } --Paul

« previous php.general (#240993) next »