note 902 deleted from ref.wddx by didou
| From: | didou@php.net | Date: | Sat, 03 Feb 2007 16:18:22 +0000 |
| Subject: | note 902 deleted from ref.wddx by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-122675@lists.php.net to get a copy of this message | ||
Note Submitter: yzhang at sfu dot ca
----
To make these examples work, you'll probably want to format the output with a call to
htmlentities:
$pi = 3.1415926;
$packet_id = wddx_packet_start("PHP");
wddx_add_vars($packet_id, "pi");
/* Suppose $cities came from database */
$cities = array("Austin", "Novato", "Seattle");
wddx_add_vars($packet_id, "cities");
$packet = wddx_packet_end($packet_id);
print htmlentities($packet);