public static function encode($data)
    {
        $data = (array) $data;

        $resultString = self::loopEncode($data);

        return trim($resultString, PHP_EOL);
    }
public static function encode($data)
    {
        $data = (array) $data;

        $resultString = self::loopEncode($data);

        return trim($resultString, PHP_EOL);
    }
public static function encode ( $ data ) { $ data = ( array ) $ data ; $ resultString = self :: loopEncode ( $ data ) ; return trim ( $ resultString , PHP_EOL ) ; }
Encodes an array to ini strutcture
@param  array $data   Data to encode
@return string
Encodes an array to ini strutcture