Function php_xmlrpc_encode
Takes native php types and encodes them into xmlrpc PHP object format. It will not re-encode xmlrpcval objects.
Feature creep -- could support more types via optional type argument (string => datetime support has been added, ??? => base64 not yet)
If given a proper options parameter, php object instances will be encoded into 'special' xmlrpc values, that can later be decoded into php objects by calling php_xmlrpc_decode() with a corresponding option
Author:
Dan Libby (dan@libby.com)
Located at wa-apps/blog/plugins/import/vendors/xmlrpc/lib/xmlrpc.php
Located at wa-apps/blog/plugins/import/vendors/xmlrpc/lib/xmlrpc.php
mixed |
$php_val |
the value to be converted into an xmlrpcval object |
array |
$options = array() |
can include 'encode_php_objs', 'auto_dates', 'null_extension' or 'extension_api' |
|