wddx_serialize_vars

(PHP 3>= 3.0.7, PHP 4 >= 4.0.0)

wddx_serialize_vars -- Serializovat prom∞nnΘ do WDDX paketu

Popis

string wddx_serialize_vars ( mixed var_name [, mixed ...])

wddx_serialize_vars() se pou╛φvß k vytvo°enφ WDDX paketu se strukturou kterß obsahuje serializovanou reprezentaci p°edan²ch prom∞nn²ch.

wddx_serialize_vars() p°ijφmß prom∞nn² poΦet argument∙, ka╛d² z nich m∙╛e b²t bu∩ °et∞zec obsahujφcφ nßzev prom∞nnΘ, nebo pole nßzv∙ prom∞nn²ch, nebo jinΘ pole atd.

P°φklad 1. wddx_serialize_vars example

<?php
$a = 1;
$b = 5.5;
$c = array("blue", "orange", "violet");
$d = "colors";

$clvars = array("c", "d");
print wddx_serialize_vars("a", "b", $clvars);
?>

V²╣e uvedenß ukßzka vytvo°φ:
<wddxPacket version='1.0'><header/><data><struct><var name='a'><number>1</number></var>
<var name='b'><number>5.5</number></var><var name='c'><array length='3'>
<string>blue</string><string>orange</string><string>violet</string></array></var>
<var name='d'><string>colors</string></var></struct></data></wddxPacket>