Serialize a single value into a WDDX packet

# wddx_serialize_value

(PHP 4, PHP 5, PHP 7)

wddx_serialize_value — Serialize a single value into a WDDX packet

警告

该函数已在 PHP 7.4.0 中 移除。

### 说明

function wddx_serialize_value(mixed `$var`, string `$comment` = ?): string

Creates a WDDX packet from a single given value.

### 参数

`var`

  The value to be serialized

`comment`

  An optional comment string that appears in the packet header.

### 返回值

Returns the WDDX packet, or `false` on error.

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open