Tutorial by Examples

YAML does not come with a standard PHP installation, instead it needs to be installed as a PECL extension. On linux/unix it can be installed with a simple pecl install yaml Note that libyaml-dev package must be installed on the system, as the PECL package is simply a wrapper around libYAML call...
YAML provides a way to store structured data. The data can be a simple set of name-value pairs or a complex hierarchical data with values even being arrays. Consider the following YAML file: database: driver: mysql host: database.mydomain.com port: 3306 db_name: sample_db ...

Page 1 of 1