略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: xmlrpc_decode_request

2024-12-22

xmlrpc_decode_request

(PHP 4 >= 4.1.0, PHP 5, PHP 7)

xmlrpc_decode_request将 XML 译码为 PHP 本身的类型

说明

xmlrpc_decode_request(string $xml, string &$method, string $encoding = ?): mixed
警告

此函数是实验性的。此函数的表象,包括名称及其相关文档都可能在未来的 PHP 发布版本中未通知就被修改。使用本函数风险自担。

警告

本函数还未编写文档,仅有参数列表。

add a noteadd a note

User Contributed Notes 1 note

up
-11
e dot sand at elisand dot com
13 years ago
This function works exactly the same as xmlrpc_decode() except it gives you access to the method being called as well (xmlrpc_decode() only outputs the params from the XML-RPC call).

To use this function, simply create an empty variable to store the method string in, and then pass by reference like so:

<?php
$method
= null;
$params = xmlrpc_decode_request('<xml rpc request>', &$method);
?>

What you will get back are the params stored in $params, and $method will have the method being requested.

官方地址:https://www.php.net/manual/en/function.xmlrpc-decode-request.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3