nerdexam
Zend

200-530 · Question #483

Consider the following array: $arr= array('apple', 'banana', 'cherry'); You want to display this array as the following string: apple, banana, cherry Which of the following functions will you use to…

The correct answer is C. implode(). Zend 200-530 Exam

Arrays

Question

Consider the following array: $arr= array('apple', 'banana', 'cherry'); You want to display this array as the following string: apple, banana, cherry Which of the following functions will you use to accomplish the task into a single call?

Options

  • Aexplode()
  • Bltrim()
  • Cimplode()
  • Dsubstr()

How the community answered

(36 responses)
  • A
    17% (6)
  • B
    3% (1)
  • C
    75% (27)
  • D
    6% (2)

Explanation

Zend 200-530 Exam

Topics

#implode#array to string#join#string functions

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice