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