我不知道是什么,但你可能想要这样的东西readStack()storeStack()$arr = array('https://domain1.com', 'https://domain2.com');shuffle($arr); // This returns a boolean and the array is modified inside the function so just pass in the array$url=array_pop($arr); // Pop the top most element from the array and store into $urlheader("Location: $url");仅该代码就为您提供了来自这两个的随机URL