|
|
%!s(int64=10) %!d(string=hai) anos | |
|---|---|---|
| .. | ||
| Exception | %!s(int64=10) %!d(string=hai) anos | |
| Tests | %!s(int64=10) %!d(string=hai) anos | |
| CHANGELOG.md | %!s(int64=10) %!d(string=hai) anos | |
| Dumper.php | %!s(int64=10) %!d(string=hai) anos | |
| Escaper.php | %!s(int64=10) %!d(string=hai) anos | |
| Inline.php | %!s(int64=10) %!d(string=hai) anos | |
| LICENSE | %!s(int64=10) %!d(string=hai) anos | |
| Parser.php | %!s(int64=10) %!d(string=hai) anos | |
| README.md | %!s(int64=10) %!d(string=hai) anos | |
| Unescaper.php | %!s(int64=10) %!d(string=hai) anos | |
| Yaml.php | %!s(int64=10) %!d(string=hai) anos | |
| composer.json | %!s(int64=10) %!d(string=hai) anos | |
| phpunit.xml.dist | %!s(int64=10) %!d(string=hai) anos | |
YAML implements most of the YAML 1.2 specification.
use Symfony\Component\Yaml\Yaml;
$array = Yaml::parse(file_get_contents(filename));
print Yaml::dump($array);
You can run the unit tests with the following command:
$ cd path/to/Symfony/Component/Yaml/
$ composer install
$ phpunit