Home / Questions / Other PHP cleanup के लिए finally block क्यों उपयोगी है? को secure तरीके से कैसे implement करें? Other 0 Views Verified PHP cleanup के लिए finally block क्यों उपयोगी है? को secure तरीके से कैसे implement करें? सही विकल्प चुनें और code/solution को समझें। #php #core php #php programming #php tutorial #php error #php solution #backend #developer Sarkari Result QA Bank Editorially reviewed exam information Share
Verified finally only catches errors finally only catches errors Additional Explanation यह विकल्प सही Core PHP solution नहीं है।
Verified finally runs only when no exception finally runs only when no exception Additional Explanation यह विकल्प सही Core PHP solution नहीं है।
Verified finally replaces try finally replaces try Additional Explanation यह विकल्प सही Core PHP solution नहीं है।
Verified Correct Answer try { work(); } finally { cleanup(); } try { work(); } finally { cleanup(); } Additional Explanation finally cleanup को success/error paths में execute करने के लिए उपयोगी है। User input को trust न करें; validation, escaping और prepared statements context के अनुसार उपयोग करें।