yxorP Documentation

Spyc.php

Spyc -- A Simple PHP YAML Class

Tags
version
0.6.2
author

Vlad Andersen vlad.andersen@gmail.com

author

Chris Wanstrath chris@ozmm.org

link
https://github.com/mustangostang/spyc/
copyright

Copyright 2005-2006 Chris Wanstrath, 2006-2011 Vlad Andersen

license

http://www.opensource.org/licenses/mit-license.php MIT License

Interfaces, Classes, Traits and Enums

Spyc
The Simple PHP YAML Class.

Table of Contents

spyc_load()  : array<string|int, mixed>
Parses YAML to array.
spyc_load_file()  : array<string|int, mixed>
Parses YAML to array.
spyc_dump()  : string
Dumps array to YAML.

Functions

spyc_load()

Parses YAML to array.

spyc_load(string $string) : array<string|int, mixed>
Parameters
$string : string

YAML string.

Return values
array<string|int, mixed>

spyc_load_file()

Parses YAML to array.

spyc_load_file(string $file) : array<string|int, mixed>
Parameters
$file : string

Path to YAML file.

Return values
array<string|int, mixed>

spyc_dump()

Dumps array to YAML.

spyc_dump(array<string|int, mixed> $data) : string
Parameters
$data : array<string|int, mixed>

Array.

Return values
string

Search results