0

0

Serializing XML With PHP

php中文网

php中文网

发布时间:2016-06-23 14:36:40

|

990人浏览过

|

来源于php中文网

原创

  a article about pear/xml_serializing, very useful, the author might be trog, idon't know. the original link is:

http://www.melonfire.com/community/columns/trog/article.php?id=244&page=1

TGroupon团购系统
TGroupon团购系统

TGroupon团购系统是以php+MySQL进行开发的团购网站系统,首页能同时显示多个正在进行中的团购商品,将团购中的商品最大限度的展示在用户面前,对提升网站整体销售量有着很大的帮助。安装说明:1:环境:windows/LINUX/UNIX/apache,mysql,php2:所用语言: php,javascript,xml,html3:将程序放置空间或者服务器上,要求uploadfiles目录

下载
Serializing XML With PHP
Build nested XML documents from PHP data structures with XML_Serializer

| Letting The Creative Juices Flow |

立即学习PHP免费学习笔记(深入)”;



PHP has always been ahead of the curve when it comes to supporting new technologies - and XML is no exception. Early versions of PHP came with basic XML support built in; newer versions improved on this by adding support for new XML protocols and technologies like the DOM, WDDX and SOAP, making PHP one of the most versatile and flexible tools for XML application development.

Now, by default, all newer versions of PHP come with the XML SAX parser enabled; however, the DOM module needs to be explicitly turned on at compile time. If you don't have the ability to recompile your PHP build - and if you're sharing space on a server, it's quite likely you won't - then you're up a creek without a paddle if your application needs to dynamically create XML document instances.

So, a creative solution is needed. Which is where this article comes in.

Over the next few pages, I'm going to be introducing you to a free PHP class named XML_Serializer, which allows you to create XML documents from PHP data structures like arrays and objects *without* requiring you to first recompile your PHP build for DOM support. As you might imagine, this can come in handy in certain situations - for example, if you need a quick and dirty way to build an XML document tree from an external data source, like a MySQL database or a structured text file. So keep reading - you might find the rest of this show interesting!

 
Serializing XML With PHP
Build nested XML documents from PHP data structures with XML_Serializer

| A Twist In The Tale |



The XML_Serializer class comes courtesy of PEAR, the PHP Extension and Application Repository (http://pear.php.net), and has been developed by Stephan Schmidt of phptools.de fame. In case you didn't know, PEAR is an online repository of free PHP software, including classes and modules for everything from data archiving to XML parsing. When you install PHP, a whole bunch of PEAR modules get installed as well.

In case your PHP distribution didn't include XML_Serializer, you can get yourself a copy from the official PEAR Web site, at http://pear.php.net - simply unzip the distribution archive into your PEAR directory and you're ready to roll!

Note that in order to use XML_Serializer, you will need to have the XML_Util package already installed. If you don't already have it, you can get it from the Web site above.

Let's begin with something simple - dynamically constructing an XML document from a PHP array. Here's the code:



// include class file
include("Serializer.php");

// create object
$serializer = new XML_Serializer();

// create array to be serialized
$xml = array ( "book" => array (
            "title" => "Oliver Twist",
            "author" => "Charles Dickens"));

// perform serialization
$result = $serializer->serialize($xml);

// check result code and display XML if success
if($result === true)
{
   echo $serializer->getSerializedData();
}

?>


Don't worry if it didn't make too much sense - all will be explained shortly. For the moment, just feast your eyes on the output (note that you may need to use the "View Source" feature of your browser to see this):





Charles Dickens




As you can see, the output of the script is a well-formed XML document - all created using PHP code!

Serializing XML With PHP
Build nested XML documents from PHP data structures with XML_Serializer

| Anatomy Class |



Let's take a closer look at how I accomplished this.

1. The first step is, obviously, to include the XML_Serializer class file:



// include class file
include("Serializer.php");

?>


You can either provide an absolute path to this file, or do what most lazy programmers do - include the path to your PEAR installation in PHP's "include_path" variable, so that you can access any of the PEAR classes without needing to type in long, convoluted file paths.

2. Next, an object of the class needs to be initialized, and assigned to a PHP variable.



// create object
$serializer = new XML_Serializer();

?>


This variable serves as the control point for future manipulation of XML_Serializer properties and methods.

3. Next, you need to put together the data that you plan to encode in XML. The simplest way to do this is to create a nested set of arrays whose structure mimics that of the final XML document you desire.



// create array to be serialized
$xml = array ( "book" => array (
            "title" => "Oliver Twist",
            "author" => "Charles Dickens"));

?>


4. With all the pieces in place, all that's left is to perform the transformation. This is done via the object's serialize() method, which accepts a PHP structure and returns a result code indicating whether or not the serialization was successful.



// perform serialization
$result = $serializer->serialize($xml);

?>


5. Once the serialization is complete, you can do something useful with it - write it to a file, pass it through a SAX parser or - as I've done here - simply output it to the screen for all to admire:



// check result code and display XML if success
if($result === true)
{
   echo $serializer->getSerializedData();
}

?>


The getSerializedData() method returns the serialized XML document tree as is, and serves a very useful purpose in debugging - you'll see it often over the next few pages.

Serializing XML With PHP
Build nested XML documents from PHP data structures with XML_Serializer

| Total Satisfaction |



Now, if you're a nitpicker, the output of the example on the previous page still won't satisfy you. Here's why:

1. The serialized XML document does not contain the XML declaration at the top.

2. The root element of the document is called , whereas what you actually want is for it to be .

3. The XML document is not correctly indented.

In order to account for these requirements, XML_Serializer comes with a setOption() method, which allows you to customize the behaviour of the serializer to your needs. To illustrate, consider the following example, which solves the first problem noted above:



// include class file
include("Serializer.php");

// create object
$serializer = new XML_Serializer();

// create array to be serialized
$xml = array ( "book" => array (
            "title" => "Oliver Twist",
            "author" => "Charles Dickens"));

// add XML declaration
$serializer->setOption("addDecl", true);

// perform serialization
$result = $serializer->serialize($xml);

// check result code and display XML if success
if($result === true)
{
   echo $serializer->getSerializedData();
}

?>


Here's the output:






Charles Dickens




Thus, the setOption() method takes two arguments - a variable and its value - and uses that information to tell the serializer how to return the XML document.

Next, how about fixing the root element and the indentation?



// include class file
include("Serializer.php");

// create object
$serializer = new XML_Serializer();

// create array to be serialized
$xml = array ( "book" => array (
            "title" => "Oliver Twist",
            "author" => "Charles Dickens"));

// add XML declaration
$serializer->setOption("addDecl", true);

// indent elements
$serializer->setOption("indent", "    ");

// set name for root element
$serializer->setOption("rootName", "library");
                 
// perform serialization
$result = $serializer->serialize($xml);

// check result code and display XML if success
if($result === true)
{
   echo $serializer->getSerializedData();
}

?>


And here's the result:




   
       
        Charles Dickens
   



Pretty, isn't it?
Serializing XML With PHP
Build nested XML documents from PHP data structures with XML_Serializer

| No Attribution |



Now, what about those pesky attributes? Well, XML_Serializer comes with an option that allows you to represent array keys as attributes of the enclosing element (instead of elements themselves). Take a look:



// include class file
include("Serializer.php");

// create object
$serializer = new XML_Serializer();

// create array to be serialized
$xml = array ( "book" => array (
            "title" => "Oliver Twist",
            "author" => "Charles Dickens"));

// add XML declaration
$serializer->setOption("addDecl", true);

// indent elements
$serializer->setOption("indent", "    ");

// set name for root element
$serializer->setOption("rootName", "library");

// represent scalar values as attributes instead of element
$serializer->setOption("scalarAsAttributes", true);
                 
// perform serialization
$result = $serializer->serialize($xml);

// check result code and display XML if success
if($result === true)
{
   echo $serializer->getSerializedData();
}

?>


Here's the output:




   



Note that in order for this to work, the array key which is to be represented as an attribute should point to a single scalar value and not another array or object. To understand this better, consider the following example, which demonstrates the difference:



// include class file
include("Serializer.php");

// create object
$serializer = new XML_Serializer();

// create array to be serialized
$xml = array ( "book" => array (
            "title" => "Oliver Twist",
            "author" => "Charles Dickens",
            "price" => array (   "currency" => "USD",
                     "amount" => 24.50)));

// add XML declaration
$serializer->setOption("addDecl", true);

// indent elements
$serializer->setOption("indent", "    ");

// set name for root element
$serializer->setOption("rootName", "library");

// represent scalar values as attributes instead of element
$serializer->setOption("scalarAsAttributes", true);
                 
// perform serialization
$result = $serializer->serialize($xml);

// check result code and display XML if success
if($result === true)
{
   echo $serializer->getSerializedData();
}

?>


And here's the revised output:




   
       
   



To add attributes to the root node, set them with the "rootAttributes" option, as below:



// include class file
include("Serializer.php");

// create object
$serializer = new XML_Serializer();

// create array
$xml = array("name" => "John Doe", "age" => 34, "sex" => "male");

// add XML declaration
$serializer->setOption("addDecl", true);

// indent elements
$serializer->setOption("indent", "    ");

// set name for root element
$serializer->setOption("rootName", "person");

// set attributes for root element
$serializer->setOption("rootAttributes", array("id" => 346747));

// perform serialization
$result = $serializer->serialize($xml);

// check result code and display XML if success
if($result === true)
{
   echo $serializer->getSerializedData();
}

?>


Here's the output:




    John Doe
    34
    male



Serializing XML With PHP
Build nested XML documents from PHP data structures with XML_Serializer

| An Object Lesson |



You can also serialize objects, in much the same way as you serialize arrays. Take a look at the following example, which demonstrates how:



// object definition
class Automobile
{

   // object properties
   var $color;
   var $year;
   var $model;

   function setAttributes($c, $y, $m)
   {
      $this->color = $c;
      $this->year = $y;
      $this->model = $m;
   }
}


// include class file
include("Serializer.php");

// create object
$serializer = new XML_Serializer();

// create object to be serialized
$car = new Automobile;
$car->setAttributes("blue", 1982, "Mustang");

// add XML declaration
$serializer->setOption("addDecl", true);

// indent elements
$serializer->setOption("indent", "    ");

// set name for root element
$serializer->setOption("rootName", "car");

// perform serialization
$result = $serializer->serialize($car);

// check result code and display XML if success
if($result === true)
{
   echo $serializer->getSerializedData();
}

?>


In this example, I've first defined a class called Automobile, and created some methods and properties for it. Then, further down in the script, I've instantiated an object of the class and set some very specific values for the object's properties. This object has then been serialized via XML_Serializer's serialize() method.

Here's the result:




    blue
    1982
    Mustang



Serializing XML With PHP
Build nested XML documents from PHP data structures with XML_Serializer

| Not My Type |



One of XML_Serializer's other interesting features is its ability to store data type information along with each value in the XML document. Called "type hints", this data type information can help in distinguishing between the integer 6 and the string "6", and comes in handy if your XML application is strongly typed.

To enable type hints, you need to simply set the "typeHints" option to true. The following example illustrates:



// include class file
include("Serializer.php");

// set options
$options = array(   "addDecl" => true,
         "indent" => "    ",
         "rootName" => "car",
         "typeHints" => true);

// create object
$serializer = new XML_Serializer($options);

// create array
$car = array("color" => "blue", "year" => 1982, "model" => "Mustang", "price" => 15000.00);

// perform serialization
$result = $serializer->serialize($car);

// check result code and display XML if success
if($result === true)
{
   echo $serializer->getSerializedData();
}

?>


Once type hints are enabled, every element within the XML document will bear an additional attribute indicating the data type of the value contained within it. Here's what the output of the example above looks like:




    blue
    1982
    Mustang
    15000



Note that in the example above, I've used a slightly different method to set serializer options - I've created an array of options and values, and passed the array to the object constructor. When you have a large number of options to set, this method can save you a few lines of code.

Serializing XML With PHP
Build nested XML documents from PHP data structures with XML_Serializer

| Travelling In Reverse |



Good things come in twos - Mickey and Donald, Tom and Jerry, yin and yang - and so it's no surprise that XML_Serializer has a doppelganger of its own. Called XML_Unserializer, this class can take an XML document and convert it into a series of nested PHP structures, suitable for use in a PHP script.

In order to understand how this works, consider the following XML document:




  
     
      Arthur Conan Doyle
      24.95
  
  
     
      Yann Martel
      7.99
  
  
     
      Lonely Planet
      16.99
  



Now, in order to convert this XML document into a PHP structure, simply put XML_Unserializer to work on it, as below:



// include class file
include("Unserializer.php");

// create object
$unserializer = &new XML_Unserializer();

// unserialize the document
$result = $unserializer->unserialize("library.xml", true);   

// dump the result
$data = $unserializer->getUnserializedData();
print_r($data);

?>


Here, the unserialize() method accepts either a string containing XML data or an XML file (set the second argument to false or true depending on which one you are passing) and returns a PHP structure representing the XML document. Here's what the output looks like:


Array
(
    [book] => Array
        (
            [0] => Array
                (
                    [title] => The Adventures of Sherlock Holmes
                    [author] => Arthur Conan Doyle
                    [price] => 24.95
                )

            [1] => Array
                (
                    [title] => Life of Pi
                    [author] => Yann Martel
                    [price] => 7.99
                )

            [2] => Array
                (
                    [title] => Europe on a Shoestring
                    [author] => Lonely Planet
                    [price] => 16.99
                )

        )

)


Now, in order to access the title of the third book (for example), you would use the notation


$data['book'][2]['title'];


which would return


Europe on a Shoestring


Note that XML_Unserializer uses the type hints generated in the serialization process to accurately map XML elements to PHP data types. If these hints are unavailable (as in the example above), XML_Unserializer will "guess" the type of each value. A look at the source code of the class reveals that "complex structures will be arrays and tags with only CData in them will be strings."

 
Serializing XML With PHP
Build nested XML documents from PHP data structures with XML_Serializer

| Keeping It Simple |



It's also possible to convert an XML document into a PHP object instead of a nested set of arrays, simply by setting appropriate options for the unserializer. Consider the following example, which demonstrates how this may be done:



// include class file
include("Unserializer.php");

// tell the unserializer to create an object
$options = array("complexType" => "object");

// create object
$unserializer = &new XML_Unserializer($options);

// unserialize the document
$result = $unserializer->unserialize("library.xml", true);   

// dump the result
print_r($unserializer->getUnserializedData());

?>


Here's the output:


stdClass Object
(
    [book] => Array
        (
            [0] => stdClass Object
                (
                    [title] => The Adventures of Sherlock Holmes
                    [author] => Arthur Conan Doyle
                    [price] => 24.95
                )

            [1] => stdClass Object
                (
                    [title] => Life of Pi
                    [author] => Yann Martel
                    [price] => 7.99
                )

            [2] => stdClass Object
                (
                    [title] => Europe on a Shoestring
                    [author] => Lonely Planet
                    [price] => 16.99
                )

        )

)


In this format, you can use standard object notation to access (for example) the title of the last book - the notation


$obj->book[2]->title


would return


Europe on a Shoestring

Serializing XML With PHP
Build nested XML documents from PHP data structures with XML_Serializer

| Employment Options |



Now, while all this is fine and dandy, how about using all this new-found knowledge for something practical?

This next example does just that, demonstrating how the XML_Serializer class can be used to convert data stored in a MySQL database into an XML document, and write it to a file for later use. Here's the MySQL table I'll be using,


mysql> SELECT * FROM employees;
+-----+--------+--------+-----+-----+----------------+---------+
| id  | lname  | fname  | age | sex | department     | country |
+-----+--------+--------+-----+-----+----------------+---------+
|  54 | Doe    | John   |  27 | M   | Engineering    | US      |
| 127 | Jones  | Sue    |  31 | F   | Finance        | UK      |
| 113 | Woo    | David  |  26 | M   | Administration | CN      |
| 175 | Thomas | James  |  34 | M   | Finance        | US      |
| 168 | Kent   | Jane   |  29 | F   | Administration | US      |
|  12 | Kamath | Ravina |  35 | F   | Finance        | IN      |
+-----+--------+--------+-----+-----+----------------+---------+
6 rows in set (0.11 sec)


and here's what I want my target XML document to look like:




   
        Doe
        John
        27
        M
        Engineering
        US
   
   
        Jones
        Sue
        31
        F
        Finance
        UK
   
   
        Woo
        David
        26
        M
        Administration
        CN
   
   
        Thomas
        James
        34
        M
        Finance
        US
   
   
        Kent
        Jane
        29
        F
        Administration
        US
   
   
        Kamath
        Ravina
        35
        F
        Finance
        IN
   



With XML_Serializer, accomplishing this is a matter of a few lines of code. Here they are:



// include class file
include("Serializer.php");

// set output filename
$filename = 'employees.xml';

// set options
$options = array(   "addDecl" => true,
         "defaultTagName" => "employee",
         "indent" => "    ",
         "rootName" => "employees");

           
// create object
$serializer = new XML_Serializer($options);

// open connection to database
$connection = mysql_connect("localhost", "user", "secret") or die ("Unable to connect!");

// select database
mysql_select_db("db1") or die ("Unable to select database!");

// execute query
$query = "SELECT * FROM employees";
$result = mysql_query($query) or die ("Error in query: $query. " . mysql_error());

// iterate through rows and print column data
while ($row = mysql_fetch_array($result))
{
   $xml[] = array (   "lname" => $row[1],
            "fname" => $row[2],
            "age" => $row[3],
            "sex" => $row[4],
            "department" => $row[5],
            "country" => $row[6]);
}

// close database connection
mysql_close($connection);

// perform serialization
$result = $serializer->serialize($xml);

// open file
if (!$handle = fopen($filename, 'w'))
{  
   print "Cannot open file ($filename)";
   exit;
}

// write XML to file
if (!fwrite($handle, $serializer->getSerializedData()))
{
   print "Cannot write to file ($filename)";
   exit;
}

// close file   
fclose($handle);

?>


Pretty simple, once you know how it works. First, I've opened up a connection to the database and retrieved all the records from the table. Then I've instantiated a new document tree and iterated over the result set, adding a new set of nodes to the tree at each iteration. Finally, once all the rows have been processed, the dynamically generated tree is written to a file for later use.

Serializing XML With PHP
Build nested XML documents from PHP data structures with XML_Serializer

| Linking Out |



And that's about it for this article. Over the last few pages, I showed you how you to build an XML document tree even if your PHP build doesn't support the XML DOM, via the free add-on XML_Serializer class from PEAR. I showed you how to programmatically create an XML document from an array or an object, how to indent XML document nodes, how to attach attributes to elements, and how to customize the behaviour of the serializer. I also showed you to how to reverse-serialize XML documents into PHP arrays or objects for use within a PHP script, together with examples of how type hints could help to make this a more accurate process. Finally, I wrapped things up with a composite example that demonstrated a practical, real-world use for all this code - converting the data in a MySQL database into XML and writing it to a file.

All this is, of course, only the tip of the iceberg - there are an infinite number of possibilities with power like this at your disposal. To find out what else you can do with XML and PHP, I'd encourage you to visit the following links:

XML Basics, at http://www.melonfire.com/community/columns/trog/article.php?id=78

XSL Basics, at http://www.melonfire.com/community/columns/trog/article.php?id=82

Using PHP With XML, at http://www.melonfire.com/community/columns/trog/article.php?id=71

XSLT Transformation With PHP And Sablotron, at http://www.melonfire.com/community/columns/trog/article.php?id=97

Building XML Trees With PHP, at http://www.melonfire.com/community/columns/trog/article.php?id=180

The XML and PHP book, at http://www.xmlphp.com/

Till next time...be good!

相关文章

PHP速学教程(入门到精通)
PHP速学教程(入门到精通)

PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!

下载

本站声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn

热门AI工具

更多
DeepSeek
DeepSeek

幻方量化公司旗下的开源大模型平台

豆包大模型
豆包大模型

字节跳动自主研发的一系列大型语言模型

通义千问
通义千问

阿里巴巴推出的全能AI助手

腾讯元宝
腾讯元宝

腾讯混元平台推出的AI助手

文心一言
文心一言

文心一言是百度开发的AI聊天机器人,通过对话可以生成各种形式的内容。

讯飞写作
讯飞写作

基于讯飞星火大模型的AI写作工具,可以快速生成新闻稿件、品宣文案、工作总结、心得体会等各种文文稿

即梦AI
即梦AI

一站式AI创作平台,免费AI图片和视频生成。

ChatGPT
ChatGPT

最最强大的AI聊天机器人程序,ChatGPT不单是聊天机器人,还能进行撰写邮件、视频脚本、文案、翻译、代码等任务。

相关专题

更多
pixiv网页版官网登录与阅读指南_pixiv官网直达入口与在线访问方法
pixiv网页版官网登录与阅读指南_pixiv官网直达入口与在线访问方法

本专题系统整理pixiv网页版官网入口及登录访问方式,涵盖官网登录页面直达路径、在线阅读入口及快速进入方法说明,帮助用户高效找到pixiv官方网站,实现便捷、安全的网页端浏览与账号登录体验。

616

2026.02.13

微博网页版主页入口与登录指南_官方网页端快速访问方法
微博网页版主页入口与登录指南_官方网页端快速访问方法

本专题系统整理微博网页版官方入口及网页端登录方式,涵盖首页直达地址、账号登录流程与常见访问问题说明,帮助用户快速找到微博官网主页,实现便捷、安全的网页端登录与内容浏览体验。

194

2026.02.13

Flutter跨平台开发与状态管理实战
Flutter跨平台开发与状态管理实战

本专题围绕Flutter框架展开,系统讲解跨平台UI构建原理与状态管理方案。内容涵盖Widget生命周期、路由管理、Provider与Bloc状态管理模式、网络请求封装及性能优化技巧。通过实战项目演示,帮助开发者构建流畅、可维护的跨平台移动应用。

91

2026.02.13

TypeScript工程化开发与Vite构建优化实践
TypeScript工程化开发与Vite构建优化实践

本专题面向前端开发者,深入讲解 TypeScript 类型系统与大型项目结构设计方法,并结合 Vite 构建工具优化前端工程化流程。内容包括模块化设计、类型声明管理、代码分割、热更新原理以及构建性能调优。通过完整项目示例,帮助开发者提升代码可维护性与开发效率。

20

2026.02.13

Redis高可用架构与分布式缓存实战
Redis高可用架构与分布式缓存实战

本专题围绕 Redis 在高并发系统中的应用展开,系统讲解主从复制、哨兵机制、Cluster 集群模式及数据分片原理。内容涵盖缓存穿透与雪崩解决方案、分布式锁实现、热点数据优化及持久化策略。通过真实业务场景演示,帮助开发者构建高可用、可扩展的分布式缓存系统。

54

2026.02.13

c语言 数据类型
c语言 数据类型

本专题整合了c语言数据类型相关内容,阅读专题下面的文章了解更多详细内容。

29

2026.02.12

雨课堂网页版登录入口与使用指南_官方在线教学平台访问方法
雨课堂网页版登录入口与使用指南_官方在线教学平台访问方法

本专题系统整理雨课堂网页版官方入口及在线登录方式,涵盖账号登录流程、官方直连入口及平台访问方法说明,帮助师生用户快速进入雨课堂在线教学平台,实现便捷、高效的课程学习与教学管理体验。

15

2026.02.12

豆包AI网页版入口与智能创作指南_官方在线写作与图片生成使用方法
豆包AI网页版入口与智能创作指南_官方在线写作与图片生成使用方法

本专题汇总豆包AI官方网页版入口及在线使用方式,涵盖智能写作工具、图片生成体验入口和官网登录方法,帮助用户快速直达豆包AI平台,高效完成文本创作与AI生图任务,实现便捷智能创作体验。

598

2026.02.12

PostgreSQL性能优化与索引调优实战
PostgreSQL性能优化与索引调优实战

本专题面向后端开发与数据库工程师,深入讲解 PostgreSQL 查询优化原理与索引机制。内容包括执行计划分析、常见索引类型对比、慢查询优化策略、事务隔离级别以及高并发场景下的性能调优技巧。通过实战案例解析,帮助开发者提升数据库响应速度与系统稳定性。

56

2026.02.12

热门下载

更多
网站特效
/
网站源码
/
网站素材
/
前端模板

精品课程

更多
相关推荐
/
热门推荐
/
最新课程
传智播客PHP-XML视频教程
传智播客PHP-XML视频教程

共28课时 | 4.9万人学习

php ajax快速入门视频教程
php ajax快速入门视频教程

共6课时 | 1.3万人学习

php中级教程之ajax技术
php中级教程之ajax技术

共13课时 | 3.3万人学习

关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号