note 11825 deleted from function.extract by jimw

From: Date: Sat, 08 Dec 2001 19:57:18 +0000
Subject: note 11825 deleted from function.extract by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-22150@lists.php.net to get a copy of this message
You say: > I LOVE this function. This makes developing large database queries > a snap, and eliminates tons of coding. I totally agree. For small scripts. However, if you are doing 2 or 3 (or more) queries on a script and printing the results, it's much easier to follow the flow by using the $array[field_name] method as opposed to using extract() and $field_name method. At least using the associative array, you can easily see the values that are being printed out for each specific result set as opposed to guessing, as you would with extract(). It is a *great* function, yes. But I wouldn't use it in larger scripts using many queries/result sets. Chris

« previous php.notes (#22150) next »