yaml_emit

yaml_emit

(PECL yaml >= 0.5.0)

yaml_emitReturns the YAML representation of a value

Description

string yaml_emit ( mixed $data [, int $encoding = YAML_ANY_ENCODING [, int $linebreak = YAML_ANY_BREAK [, array $callbacks = null ]]] )

Generate a YAML representation of the provided data.

Parameters

data

The data being encoded. Can be any type except a 登录查看完整内容