Home > PHP > Function > WDDX > wddx_add_vars()

wddx_add_vars()

wddx_add_vars - Add variables to a WDDX packet with the specified ID

Syntax

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

Arguments

  • 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.
  • ...

Description

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

Version

PHP 4, 5

Return value

Returns TRUE on success or FALSE on failure.