From bcad40a05ab2dc2a341a3227e30b96668bce4500 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Thu, 9 Jun 2005 16:34:40 +0000 Subject: New Import --- modules/xmlrpc/doc/arrayuse.html | 253 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 253 insertions(+) create mode 100644 modules/xmlrpc/doc/arrayuse.html (limited to 'modules/xmlrpc/doc/arrayuse.html') diff --git a/modules/xmlrpc/doc/arrayuse.html b/modules/xmlrpc/doc/arrayuse.html new file mode 100644 index 00000000..e8011ed4 --- /dev/null +++ b/modules/xmlrpc/doc/arrayuse.html @@ -0,0 +1,253 @@ +Easy use with PHP arrays
XML-RPC for PHP: version 1.1
PrevChapter 6. Helper functionsNext

Easy use with PHP arrays

Dan Libby was kind enough to contribute two helper functions + that make it easier to translate to and from PHP arrays. This + makes it easier to deal with complex structures. At the moment + support is limited to int, double, + string, array and struct + datatypes; note also that all PHP arrays are encoded as structs + due to PHP not being able to tell the difference between a hash + and a linear array.

These functions reside in xmlrpc.inc.

xmlrpc_decode

$arr=xmlrpc_decode($xmlrpc_val);

Returns a PHP array stuffed with the values found in the + xmlrpcval $xmlrpc_val, + translated into native PHP types. +

xmlrpc_encode

$xmlrpc_val=xmlrpc_encode($phpval);

Returns an xmlrpcval populated with the PHP + values in $phpval. Works recursively on + arrays and structs. Note that there's no support for non-base + types like base-64 values or date-times. +


PrevHomeNext
Helper functionsUpDebugging aids
\ No newline at end of file -- cgit