note 902 modified in ref.wddx by irchtml

From: Date: Wed, 03 Mar 2004 08:38:12 +0000
Subject: note 902 modified in ref.wddx by irchtml
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-66149@lists.php.net to get a copy of this message
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); --was-- To make these examples work, you'll probably want to format the output with a call to htmlentities: <pre> $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); </pre> http://www.php.net/manual/en/ref.wddx.php

« previous php.notes (#66149) next »