SarkariResultess QA Bank

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

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

Answer & Explanation

4 Answers
Verified Correct Answer

explode(',', $text)

explode(',', $text)
Additional Explanation
explode() delimiter के आधार पर array बनाता है। Production में logging और safe error handling रखें।
Verified

split_string($text, ',')

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

$text.explode(',')

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

array_split($text)

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