SarkariResultess QA Bank

PHP current date कैसे लेते हैं? production project में safely कैसे use करें?

Other 0 Views Verified
PHP current date कैसे लेते हैं? production project में safely कैसे use करें? सही विकल्प चुनें और code/solution को समझें।
Sarkari Result QA Bank
Editorially reviewed exam information

Answer & Explanation

4 Answers
Verified

today('Y-m-d');

today('Y-m-d');
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Verified

current_date('Y-m-d');

current_date('Y-m-d');
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Verified Correct Answer

date('Y-m-d');

date('Y-m-d');
Additional Explanation
date() format के अनुसार current date/time देता है। Production में logging और safe error handling रखें।
Verified

date_now('Y-m-d');

date_now('Y-m-d');
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।