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 ","?

  1. join(",","Hello","World")
  2. join("Hello","World",",")
  3. join(",", ("Hello","World"))
  4. 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"))

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.