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)- A17% (6)
- B3% (1)
- C75% (27)
- D6% (2)
Explanation
Zend 200-530 Exam
Topics
#implode#array to string#join#string functions
Community Discussion
No community discussion yet for this question.