$r = mysql_query('SELECT * FROM cheese');
while ($ob = mysql_fetch_object($r)) {
$ob->price = sprintf('$%.02f', $ob->price);
$results[] = $ob;
}
Wow. This mysql_fetch_object() function just dynamically created a class and instantiated the object. That, is pretty nice. I like.