sunhao fe08a6fbcc 初始 | 5 年之前 | |
---|---|---|
.. | ||
Exception | 5 年之前 | |
Tests | 5 年之前 | |
.gitignore | 5 年之前 | |
CHANGELOG.md | 5 年之前 | |
Dumper.php | 5 年之前 | |
Escaper.php | 5 年之前 | |
Inline.php | 5 年之前 | |
LICENSE | 5 年之前 | |
Parser.php | 5 年之前 | |
README.md | 5 年之前 | |
Unescaper.php | 5 年之前 | |
Yaml.php | 5 年之前 | |
composer.json | 5 年之前 | |
phpunit.xml.dist | 5 年之前 |
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.phar install
$ phpunit