$ua = getua();
$uaRandNum = rand(0,(count($ua['pc'])-1));
$header = [
'timeout' => 10,
'verify' => false,
'proxy' => '',
'headers' => [
'User-Agent' => $ua[pc][$uaRandNum],
'Referer' => '',
'Accept-Encoding' => 'gzip, deflate, br',
'Cookie' => '',
'Accept-Language' => 'zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2',
'Connection' => 'keep-alive',
'Host' => '',
'Origin' => ''
]
];
<?php
function getUa(){
return [