SarkariResultess QA Bank

PHP date string parse करने का function क्या है? को secure तरीके से कैसे implement करें?

Other 0 Views Verified
PHP date string parse करने का function क्या है? को secure तरीके से कैसे implement करें? सही विकल्प चुनें और code/solution को समझें।
Sarkari Result QA Bank
Editorially reviewed exam information

Answer & Explanation

4 Answers
Verified

timestamp_from_date('...');

timestamp_from_date('...');
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Verified Correct Answer

strtotime('2026-01-01');

strtotime('2026-01-01');
Additional Explanation
strtotime() textual date/time को timestamp में parse करता है। User input को trust न करें; validation, escaping और prepared statements context के अनुसार उपयोग करें।
Verified

date_parse_timestamp_only('...');

date_parse_timestamp_only('...');
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Verified

parse_date_time('...');

parse_date_time('...');
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।