ibase_fetch_object

ibase_fetch_object -- 1行分の結果をオブジェクトとして取得する

説明

int ibase_fetch_object(int result_id);

ibase_query()またはibase_execute ()により得られたresult_idから 擬似オブジェクトとして1行分の結果を取得します。

  1 
  2 $dbh = ibase_connect ($host, $username, $password);
  3 $stmt = 'SELECT * FROM tblname';
  4 $sth = ibase_query($dbh, $stmt);
  5 while ($row = ibase_fetch_object($sth)) {
  6     print $row->email . "\n";
  7 }
  8 ibase_close($dbh);
  9       

ibase_fetch_row()も参照下さい。