1.

What is explode() in php?

Answer»

PHP EXPLODE() function is USED to BREAK a string into an array.

Also Read: What is the difference between PHP5 and php7Example

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

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



Discussion

No Comment Found