Loading…

What is explode() in php?

PHP explode() function is used to break a string into an array.

Example

                                        

$string = "My Name Is BestInterviewQuestion";
print_r (explode(" ",$string));

// OUTPUT : Array ( [0] => My [1] => Name [2] => Is [3] => BestInterviewQuestion )

Suggest An Answer

No suggestions avaliable!

Latest post from PHP Arrays

Ask Question