explode() function used for Split a string and returns an array.
Syntax
explode(separator,string);
Example
$string="Hello Dear";
$explode=explode(" ",$string);
print_r($explode);
Output
Array(
[0]=>Hello
[1]=>Dear
)
Copyright ©2022 coderraj.com. All Rights Reserved.