<<< Previous question <<< Question ID#0230.md >>> Next question >>>
Consider the following array:
$arr = ['apple', 'banana', 'cherry'];
Which function would you use to get the following string?
apple, banana, cherry
- A)
implode()
- B)
explode()
- C)
ltrim()
- D)
substr()
Answer
Answer: A