PHP explode is predefined function which is used to split a string. when dealing with many php project its very common to use explode function because it is much useful.
(explode is basically used to separate different values form a single string.)
Here are the examples by which we will learn how to explode a string.
exp.: $name =’PHP_learn’;
$explode_name = explode(‘_’,$name);
Now $explode_name become an array. so we have to get values as same like array.
$first_name = $explode_name;
it will output = PHP.
$last_name = $explode_name;
it will output = learn.