array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'function.wddx-add-vars.php', 1 => 'wddx_add_vars', 2 => 'Add variables to a WDDX packet with the specified ID', ), 'up' => array ( 0 => 'ref.wddx.php', 1 => 'WDDX Функції', ), 'prev' => array ( 0 => 'ref.wddx.php', 1 => 'WDDX Функції', ), 'next' => array ( 0 => 'function.wddx-deserialize.php', 1 => 'wddx_deserialize', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/wddx/functions/wddx-add-vars.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

wddx_add_vars

(PHP 4, PHP 5, PHP 7)

wddx_add_varsAdd variables to a WDDX packet with the specified ID

Увага

Ця функція ВИЛУЧЕНА в 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.

Параметри

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 в разі помилки.