wddx_add_vars

(PHP 4, PHP 5, PHP 7)

wddx_add_varsAdd variables to a WDDX packet with the specified ID

警告

該函數(shù)已在 PHP 7.4.0 中 移除。

說明

wddx_add_vars(resource $packet_id, mixed $var_name, mixed ...$var_names): bool

Serializes the passed variables and add the result to the given packet.

參數(shù)

This function takes a variable number of parameters.

packet_id

A WDDX packet, returned by wddx_packet_start().

var_name

Can be either a string naming a variable or an array containing strings naming the variables or another array, etc.

var_names

返回值

成功時返回 true, 或者在失敗時返回 false