Home / Questions / Other PHP DateTime object कैसे बनाते हैं? production project में safely कैसे use करें? Other 0 Views Verified PHP DateTime object कैसे बनाते हैं? production project में safely कैसे use करें? सही विकल्प चुनें और 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 $dt = datetime(); $dt = datetime(); Additional Explanation यह विकल्प सही Core PHP solution नहीं है।
Verified $dt = DateTime.create(); $dt = DateTime.create(); Additional Explanation यह विकल्प सही Core PHP solution नहीं है।
Verified Correct Answer $dt = new DateTime('now'); $dt = new DateTime('now'); Additional Explanation DateTime class date/time manipulation के लिए उपयोगी है। Production में logging और safe error handling रखें।
Verified $dt = new DateTimeObject(); $dt = new DateTimeObject(); Additional Explanation यह विकल्प सही Core PHP solution नहीं है।