minor #13212 [Yaml] Update README.md (xelaris)
This PR was merged into the 2.3 branch.
Discussion
----------
[Yaml] Update README.md
| Q | A
| ------------- | ---
| Fixed tickets |
| License | MIT
The ability to pass file names to Yaml::parse() was deprecated in 2.2 and will be removed in 3.0. So show an up-to-date example.
Commits
-------
bab98f0
[Yaml] Update README.md
This commit is contained in:
commit
36e05e9bf4
@ -6,7 +6,7 @@ YAML implements most of the YAML 1.2 specification.
|
|||||||
```php
|
```php
|
||||||
use Symfony\Component\Yaml\Yaml;
|
use Symfony\Component\Yaml\Yaml;
|
||||||
|
|
||||||
$array = Yaml::parse($file);
|
$array = Yaml::parse(file_get_contents(filename));
|
||||||
|
|
||||||
print Yaml::dump($array);
|
print Yaml::dump($array);
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user