追加ライブラリデータベース関数Pdo::oneVersion: Fegg 5.xOn this pagePdo::one 最後に実行したSELECTの最初の行を取得します 説明 public array|null Pdo::one() 最後のSELECTまたはPRAGMAの最初の行を返します。行がなかったときはnullを返します。 例 Controller$db = new \Fegg\Database\Pdo();$row = $db->setWhere('news_id = ?', 1)->select('cms_news')->execute()->one();if ($row === null) { // not found}