SarkariResultess QA Bank

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

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

Answer & Explanation

4 Answers
Verified

join_array($items)

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

concat_array($items)

concat_array($items)
Additional Explanation
यह विकल्प सही Core PHP solution नहीं है।
Verified Correct Answer

implode(', ', $items)

implode(', ', $items)
Additional Explanation
implode() array elements को separator से जोड़ता है। Production में logging और safe error handling रखें।
Verified

$items.implode(',')

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