foreach ($data as $key => $value) { $socket = stream_socket_client("tcp://127.0.0.1:7272", $errno, $errmsg, 5); if(!$socket) echo $errmsg; $mail_data = array("phone"=>$value,"user_id"=>$val...