What is explode() in php?
PHP explode() function is used to break a string into an array.
Also Read: What is the difference between php5 and php7
$string = "My Name Is BestInterviewQuestion";
print_r (explode(" ",$string));
// OUTPUT : Array (  => My  => Name  => Is  => BestInterviewQuestion )
Suggest An Answer
No suggestions avaliable!