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