mirror of
https://gh.wpcy.net/https://github.com/LJPc-solutions/freescout-calendar-module.git
synced 2026-07-15 19:34:42 +08:00
11 lines
No EOL
341 B
PHP
11 lines
No EOL
341 B
PHP
<?php
|
|
require_once __DIR__.'/../vendor/autoload.php';
|
|
|
|
use Dallgoot\Yaml\Yaml;
|
|
|
|
//loading YAML as YamlObject
|
|
$yamlObject = Yaml::parseFile('./examples/dummy.yml', $options = null, $debug = null);
|
|
//modifying some part
|
|
$yamlObject->object->array[3]->integer = '123456789';
|
|
//dumping the corresponding YAML
|
|
print_r(Yaml::dump($yamlObject, 0)); |