explode string after character php code example
Example 1: php explode end
$url = explode("/", URL::current());
echo end($url);
Example 2: php explode sentence into words
$words = explode(" ", $sentence);
$url = explode("/", URL::current());
echo end($url);
$words = explode(" ", $sentence);