1 | <?php |
||
2 | require_once __DIR__.'/../vendor/autoload.php'; |
||
3 | |||
4 | use Dallgoot\Yaml\Yaml; |
||
5 | |||
6 | //loading YAML as YamlObject |
||
7 | $yamlObject = Yaml::parseFile('./examples/dummy.yml', $options = null, $debug = null); |
||
8 | //modifying some part |
||
9 | $yamlObject->object->array[3]->integer = '123456789'; |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
10 | //dumping the corresponding YAML |
||
11 | print_r(Yaml::dump($yamlObject, 0)); |