ID: 9800
Updated by: jason
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Assigned To: 
Comments:

This feature has already been implemented in
CVS a few weeks ago(returns the number of elements inserted into the symbol table), 
and will be available
in 4.0.5 shortly.


Previous Comments:
---------------------------------------------------------------------------

[2001-03-16 19:11:49] [EMAIL PROTECTED]
The extract() function is a big help, but it would be even better if it returned some 
information about whether it assigned any variables, rather than just returning NULL.  
What I really want is for the following code:

while($row = mysql_fetch_array($result)) {
  extract($row);
  //do something with the variables
}

to become this:

while(extract(mysql_fetch_array($result)))
  //do something with the variables

This would be possible if extract() returned any of the following:
  -0 or 1 to indicate whether any variables were assigned
  -the number of variables assigned
  -or even the array it was given in the first place

Just a thought...
Brian

---------------------------------------------------------------------------



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9800&edit=2


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to