protected function validate($input, $processSections = self::PHP_INI_PARSER_PROCESS_SECTIONS)
    {
        if (true === is_string($input)) {
            $input = @parse_ini_string($input, $processSections);
            // Convert our associative array to an object
            $input = array_to_object(
                array_change_key_case_recursive($input)
            );
        }

        return $input;
    }
protected function validate($input, $processSections = self::PHP_INI_PARSER_PROCESS_SECTIONS)
    {
        if (true === is_string($input)) {
            $input = @parse_ini_string($input, $processSections);
            // Convert our associative array to an object
            $input = array_to_object(
                array_change_key_case_recursive($input)
            );
        }

        return $input;
    }
protected function validate ( $ input , $ processSections = self :: PHP_INI_PARSER_PROCESS_SECTIONS ) { if ( true === is_string ( $ input ) ) { $ input = @ parse_ini_string ( $ input , $ processSections ) ; // Convert our associative array to an object $ input = array_to_object ( array_change_key_case_recursive ( $ input ) ) ; } return $ input ; }
Validates that a passed string is valid ini.

@param string $input           The input to validation
@param bool   $processSections TRUE to process sections, FALSE to do not

@author Benjamin Carl <opensource@clickalicious.de>

@return mixed|bool Input on success, otherwise FALSE
Validates that a passed string is valid ini .