protected function dumpToSimpleYaml($array)
    {
        $parts = [];

        foreach ($array as $key => $value) {
            $parts[] = "$key: $value";
        }

        $yaml = implode("\n", $parts);

        return $yaml;
    }
protected function dumpToSimpleYaml($array)
    {
        $parts = [];

        foreach ($array as $key => $value) {
            $parts[] = "$key: $value";
        }

        $yaml = implode("\n", $parts);

        return $yaml;
    }
protected function dumpToSimpleYaml ( $ array ) { $ parts = [ ] ; foreach ( $ array as $ key => $ value ) { $ parts [ ] = "$key: $value" ; } $ yaml = implode ( "\n" , $ parts ) ; return $ yaml ; }
Transform an associative array to yaml.
Not using symfony's yaml dumper for full control over the format.

@param array $array
@return string
Transform an associative array to yaml . Not using symfony s yaml dumper for full control over the format .