gpt4 book ai didi

php - 如何用php编写函数(类似于mysql_query)

转载 作者:行者123 更新时间:2023-11-30 16:01:25 25 4
gpt4 key购买 nike

如何查看mysql_query()函数等内容?

如何用php编写类似的函数?

最佳答案

要查看 PHP 函数的源代码,您必须 download the source并查看“ext”文件夹中的文件和文件夹。 PHP 是用 C 编写的。您可以用 C 编写自己的扩展并将它们编译为 PHP。

您可以用 PHP 编写自己的 PHP 函数,如下所示:

function name_of_your_function($parameter1, $parameter2)
{
// Do something useful here.
}

有关详细信息,请参阅 http://php.net/manual/en/language.functions.php .

关于php - 如何用php编写函数(类似于mysql_query),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6642683/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com