public function createStreamFromArray(array $params)
    {
        $string = "";
        foreach ($params as $key => $value) {
            $string .= $key . '=' . urlencode(trim($value)) . '&';
        }

        $string = rtrim($string, "&");

        return $this->createStream($string);
    }
public function createStreamFromArray(array $params)
    {
        $string = "";
        foreach ($params as $key => $value) {
            $string .= $key . '=' . urlencode(trim($value)) . '&';
        }

        $string = rtrim($string, "&");

        return $this->createStream($string);
    }
public function createStreamFromArray ( array $ params ) { $ string = "" ; foreach ( $ params as $ key => $ value ) { $ string .= $ key . '=' . urlencode ( trim ( $ value ) ) . '&' ; } $ string = rtrim ( $ string , "&" ) ; return $ this -> createStream ( $ string ) ; }
Helper method to create a string stream from given array.

@param array $params
@return resource
Helper method to create a string stream from given array .