Practice mode PHP

Which PHP function splits a string into an array using a given separator?

Correct answer B. explode()

Explanation

explode() breaks a string into an array at each occurrence of a separator, for example explode(",", "a,b,c") returns three elements.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.