如何使用PHP解析此文本格式


How can I parse this text format with PHP?

如何使用PHP解析这些数据?我不认识这种格式。字段名称似乎是由[a-z]_组成的。子字段应缩进2个空格。

---
field_name:
  sub_field: This is text content
  sub_field1: |-
    This is multiline text content. This is multiline text content. This is multiline text content.
    This is multiline text content.
    Thanks
  number_field: 2
  another_field: ''
  array_field: []
field_name1:
  sub_field_with_empty_value: 
  note: single line text field can have serveral lines
this is also 'note' field
...

这是一个YAML文件。请参阅PHP YAML解析参考。