SarkariResultess QA Bank

PHP string trim कैसे करते हैं? production project में safely कैसे use करें?

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

Answer & Explanation

4 Answers
Verified Correct Answer

trim($text)

trim($text)
Additional Explanation
trim() beginning/end whitespace हटाता है। Production में logging और safe error handling रखें।
Verified

clean_string($text)

clean_string($text)
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Verified

$text.trim()

$text.trim()
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Verified

strip_spaces($text)

strip_spaces($text)
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।