PDO associative row fetch कैसे करते हैं? में developers की common mistake क्या है?

Other Published Updated 0 Views Verified
PDO associative row fetch कैसे करते हैं? में developers की common mistake क्या है? सही विकल्प चुनें और code/solution को समझें।
Looking for the latest Sarkari Result 2026 updates? Check the latest government exam results, merit lists and result updates on Sarkari Resultess.
Sarkari Resultess
Questions & Answers

Answer & Explanation

4 Answers
Verified Correct Answer

$stmt->fetch(PDO::FETCH_ASSOC);

$stmt->fetch(PDO::FETCH_ASSOC);
Additional Explanation
FETCH_ASSOC associative array row देता है।
Sarkari Resultess
Editorial Answer 1
Verified

$stmt->getArray();

$stmt->getArray();
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Sarkari Resultess
Editorial Answer 2
Verified

$stmt->row();

$stmt->row();
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Sarkari Resultess
Editorial Answer 3
Verified

$stmt->fetchAssocOnly();

$stmt->fetchAssocOnly();
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Sarkari Resultess
Editorial Answer 4