There is no performance/speed issue, the two are identical in speed.
This is a personal preference issue. Although, extract() does not
work on objects, only arrays.
Also, when using _fetch_array, use the second optional parameter,
for example:
$row = mysql_fetch_array($result, MYSQL_ASSOC
Personal preference, and all my code is written with that so far, but
seeing about the speed issue, that might change.
Thanks.
Jim Lucas [php] wrote:
>oh and mysql_fetch_object is a little slower then mysql_fetch_array()
>
>Jim Lucas
>- Original Message -
>From: "Bryan Gintz" <[EMAIL
oh and mysql_fetch_object is a little slower then mysql_fetch_array()
Jim Lucas
- Original Message -
From: "Bryan Gintz" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
Sent: Wednesday, January 30, 2002 10:48 AM
Subject: [PHP] MySQL Fetch_Array VS. Fetch_Object
> Does anyone kno
my question to you is, why do you want to put them into "another" variable?
the $row["field_name"]; is already a variable. why not just use that
instead?
Jim Lucas
- Original Message -
From: "Bryan Gintz" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
Sent: Wednesday, January 30,
Note that you can do this:
print "$row[field_name]";
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
-Original Message-
From: Bryan Gintz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 11:49 AM
To: PHP List
Subject: [PHP] MySQL Fetch_Array VS. Fetch_Object
D
5 matches
Mail list logo