そのまんま!
mysql_fetch_lengths
    (PHP 3, PHP 4, PHP 5)
mysql_fetch_lengths -- 結果における各出力の長さを得る
返り値
   成功した場合に長さの配列(array)を、
   失敗した場合に FALSE を返します。
  
例
   
| 例 1. mysql_fetch_lengths() の例 | 
<?php$result = mysql_query("SELECT id,email FROM people WHERE id = '42'");
 if (!$result) {
 echo 'Could not run query: ' . mysql_error();
 exit;
 }
 $row     = mysql_fetch_assoc($result);
 $lengths = mysql_fetch_lengths($result);
 
 print_r($row);
 print_r($lengths);
 ?>
 | 
 上の例の出力は、たとえば
以下のようになります。 | Array
(
    [id] => 42
    [email] => user@example.com
)
Array
(
    [0] => 2
    [1] => 16
) | 
 |