protected function implodeParams(array $params)
    {
        $s = '';

        foreach ($params as $header => $value) {
            $s .= trim($header) . ": " . trim($value) . "\r\n";
        }

        return $s;
    }
protected function implodeParams(array $params)
    {
        $s = '';

        foreach ($params as $header => $value) {
            $s .= trim($header) . ": " . trim($value) . "\r\n";
        }

        return $s;
    }
protected function implodeParams ( array $ params ) { $ s = '' ; foreach ( $ params as $ header => $ value ) { $ s .= trim ( $ header ) . ": " . trim ( $ value ) . "\r\n" ; } return $ s ; }
Generate AMI packet string from associative array provided
@param  array $params
@return string
Generate AMI packet string from associative array provided