This one returns an object
$mylink = $wpdb->get_row("SELECT * FROM $wpdb->links WHERE link_id = 10");
An associative array
$mylink = $wpdb->get_row("SELECT * FROM $wpdb->links WHERE link_id = 10", ARRAY_A);
A numerically indexed array
$mylink = $wpdb->get_row("SELECT * FROM $wpdb->links WHERE link_id = 10", ARRAY_N);
I really see no difference between them except for different ways of displaying data i.e. echo $mylink->link_id
or echo $mylink['link_id']
- I'm comfortable using any of these.
Is this just a matter of personal preference or is there a technical story to it?
PS. If it's a duplicate please post a link the comments.