public static function parse($input)
    {
        if (strncmp('---', $input, 3) === 0) {
            // Split blocks only if '---' is followed by 'FieldType'
            $blocks = preg_split(
                '/^---(\r\n|\n|\r)(?=FieldType:)/m',
                substr($input,3 )
            );
            return array_map('\mikehaertl\pdftk\DataFields::parseBlock', $blocks);
        } else {
            return self::parseBlock($input);
        }
    }
public static function parse($input)
    {
        if (strncmp('---', $input, 3) === 0) {
            // Split blocks only if '---' is followed by 'FieldType'
            $blocks = preg_split(
                '/^---(\r\n|\n|\r)(?=FieldType:)/m',
                substr($input,3 )
            );
            return array_map('\mikehaertl\pdftk\DataFields::parseBlock', $blocks);
        } else {
            return self::parseBlock($input);
        }
    }
public static function parse ( $ input ) { if ( strncmp ( '---' , $ input , 3 ) === 0 ) { // Split blocks only if '---' is followed by 'FieldType' $ blocks = preg_split ( '/^---(\r\n|\n|\r)(?=FieldType:)/m' , substr ( $ input , 3 ) ) ; return array_map ( '\mikehaertl\pdftk\DataFields::parseBlock' , $ blocks ) ; } else { return self :: parseBlock ( $ input ) ; } }
Parse the output of dump_data_fields into an array.

The string to parse can either be a single block of `Xyz:value` lines
or a set of such blocks, separated by and starting with `---`.


Here's an example:

```
---
FieldType: Text
FieldName: Text1
FieldFlags: 0
FieldValue: University of Missouri : Ray-Holland
extended line value
FieldValueDefault: University of Missouri : Ray-Holland
extended line2 value
FieldJustification: Left
FieldMaxLength: 99
---
FieldType: Text
FieldName: Text2
...
...
```

@param $input the string to parse
@return array the parsed result
Parse the output of dump_data_fields into an array .