In this tutorial we talk about how to use PHP explode method to your pages.
Syntax explode method
explode(separator,string,limit)
<?php
$str = "Hello world. It's a beautiful day";
print_r (explode(".",$str));
?>
You can use this code to The explode() function breaks a string into an array.
Then you call your result:
echo $result[0]; // Echoes: Hello world
echo $result[1]; // Echoes: It's a beautiful day.
It’s probably safe to assume that he will need to split on more than just the string