可以使用一个数组来存储多个可能的二级域名,然后使用随机数来选择一个二级域名。例如:

$domainChoices = array('1.96i0.pw', '2.96i0.pw', '3.96i0.pw', '4.96i0.pw');
$randomIndex = rand(0, count($domainChoices) - 1);
$randomDomain = $domainChoices[$randomIndex];

然后,你可以将 $randomDomain 替换 $originDomains,以便使用随机的二级域名。

PHP 生成随机二级域名:使用数组和 rand 函数

原文地址: https://www.cveoy.top/t/topic/oJBJ 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录