Hi Paul[color=blue]
> Are there any benefits to using mysql_fetch_obj ect() instead of[/color]
mysql_fetch_ass oc()?
AFAIK there is only one major difference.
mysql_fetch_ass oc returns an array, mysql_fetch_obj ect() returns an
object that contains the same values as the array.
Steffen wrote:[color=blue]
> Hi Paul[color=green]
> > Are there any benefits to using mysql_fetch_obj ect() instead of[/color]
> mysql_fetch_ass oc()?
> AFAIK there is only one major difference.
> mysql_fetch_ass oc returns an array, mysql_fetch_obj ect() returns an
> object that contains the same values as the array.
>
> mysql_fetch_ass oc()
> $row["userid"]
>
> mysql_fetch_obj ect()
> $row->userid
>
> Regards
> Steffen Jahr[/color]
Yes I know the difference. To me there are adantages of using
mysql_fetch_ass oc() in that you can use the array functions such as
array_walk and uasort(). I was wondering if mysql_fetch_obj ect() brought any
advantages that mysql_fetch_ass oc() did not have?
Comment