private function checkoutMultiHandle()
    {
        // Find an unused handle in the cache
        $key = array_search(false, $this->multiOwned, true);
        if (false !== $key) {
            $this->multiOwned[$key] = true;
            return $this->multiHandles[$key];
        }

        // Add a new handle
        $handle = curl_multi_init();
        $id = (int) $handle;
        $this->multiHandles[$id] = $handle;
        $this->multiOwned[$id] = true;

        return $handle;
    }
private function checkoutMultiHandle()
    {
        // Find an unused handle in the cache
        $key = array_search(false, $this->multiOwned, true);
        if (false !== $key) {
            $this->multiOwned[$key] = true;
            return $this->multiHandles[$key];
        }

        // Add a new handle
        $handle = curl_multi_init();
        $id = (int) $handle;
        $this->multiHandles[$id] = $handle;
        $this->multiOwned[$id] = true;

        return $handle;
    }
private function checkoutMultiHandle ( ) { // Find an unused handle in the cache $ key = array_search ( false , $ this -> multiOwned , true ) ; if ( false !== $ key ) { $ this -> multiOwned [ $ key ] = true ; return $ this -> multiHandles [ $ key ] ; } // Add a new handle $ handle = curl_multi_init ( ) ; $ id = ( int ) $ handle ; $ this -> multiHandles [ $ id ] = $ handle ; $ this -> multiOwned [ $ id ] = true ; return $ handle ; }
Returns a curl_multi handle from the cache or creates a new one

@return resource
Returns a curl_multi handle from the cache or creates a new one