explode takes a string and splits it into an array, using a delimeter
so if i have a string
$string = "1st array entry.Second array entry.THIRD array entry";
and i use explode to split $string by period (.)
$parts = explode(".", $string);
then it's the same as saying
$parts[0] = "1st array entry";
$parts[0] = "Second array entry";
$parts[0] = "THIRD array entry";
[man]basename[/man] takes a valid url and returns the filename component - so in this context, it's getting the filename of the current script.
hope that helps
adam