Home »
MCQs »
PHP MCQs
There are two strings (in an array) 'Hello' and 'World', which is the correct PHP statement to join them with the separator ','?
51. There are two strings (in an array) "Hello" and "World", which is the correct PHP statement to join them with the separator ","?
- join(",","Hello","World")
- join("Hello","World",",")
- join(",", ("Hello","World"))
- join(",",array("Hello","World"))
Answer: D) join(",",array("Hello","World"))
Explanation:
The correct PHP statement to join two strings "Hello" and "World" is:
join(",",array("Hello","World"))