1--- %YAML:1.0
2test: Simple Alias Example
3brief: >
4    If you need to refer to the same item of data twice,
5    you can give that item an alias.  The alias is a plain
6    string, starting with an ampersand.  The item may then
7    be referred to by the alias throughout your document
8    by using an asterisk before the name of the alias.
9    This is called an anchor.
10yaml: |
11    - &showell Steve
12    - Clark
13    - Brian
14    - Oren
15    - *showell
16php: |
17    ['Steve', 'Clark', 'Brian', 'Oren', 'Steve']
18
19---
20test: Alias of a Mapping
21brief: >
22    An alias can be used on any item of data, including
23    sequences, mappings, and other complex data types.
24yaml: |
25    - &hello
26        Meat: pork
27        Starch: potato
28    - banana
29    - *hello
30php: |
31    [['Meat'=>'pork', 'Starch'=>'potato'], 'banana', ['Meat'=>'pork', 'Starch'=>'potato']]
32