$fileContents = file_get_contents('path/to/your/file.txt'); $lines = explode("\n", $fileContents); $randomLine = $lines[rand(0, count($lines) - 1)]; 183.40.224.192|IP183.40.224.192归属地_IP地址查询