1, 'cardno' => $phone, 'amount' => $amount, "act" => "refill", "op" => "add", 'order_sn' => $this->make_sn(), 'notifyurl' => "http://www.baidu.com"]; $proxy = new refill_proxy("1ff02223b771c0414468c8892151c602"); while (true) { $resp = $proxy->send($url, $params); } } private function make_sn() { return mt_rand(1000, 9999) . sprintf('%010d', time()) . sprintf('%06d', (float)microtime() * 1000000); } public function testMicroTime() { [$micro,$time] = explode(' ',microtime()); } }