PHP explode() Function


explode :- The explode() function split a string into an array.

Syntax
explode(separator,string)


Note: Separator cannot be an empty string

Example: explode()

<?php


$name= "PHP implode explode string functions";
$arr = (" ", $name);
print_r($arr);
?>


Output:
array([0]=>"PHP",[1]=>"implode",[2]=>"explode",[3]=>"string",[4]=>"functions");