What does explode() do?

Options
- Used to convert a string to an array.
- Used to split a given string into the number of chunks specified
- Used to split a string by a string
- Used to split string into two equal halves.


CORRECT ANSWER : Used to split a string by a string

Discussion Board
explode().

Answer : Used to split a string by a string.

The explode() function breaks a string into an array. It returns an array of strings

Syntax :

explode(separator,string,limit)

Jayesh Sonar 02-10-2015 04:38 AM

correct option a and c

option first is also correct

Prashant 08-10-2014 12:18 PM

2 options correct

Used to convert a string to an array-first option is also correct.
but here the correct option is " Used to split a string by a string".

Please explain in detail

pinal Mehta 05-20-2014 08:46 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement