PHP的explode()函数用于将一个字符串分割为数组
$str = "Hello,World,PHP";
$arr = explode(",", $str); // $arr = array("Hello", "World", "PHP")
$arr = array("Hello", "World", "PHP");
$new_arr = explode(",", $arr); // $new_arr = array("Hello", "World", "PHP")
$url = "http://www.example.com/path/to/page.php?param=value";
$parts = explode("/", $url); // $parts = array("http:", "", "www.example.com", "path", "to", "page.php", "?param=value")