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")