gpt4 book ai didi

php - 为 php 扩展学习 C 或 C++

转载 作者:塔克拉玛干 更新时间:2023-11-03 08:01:57 24 4
gpt4 key购买 nike

我已经使用 php 编程一段时间了,我想通过学习另一种语言来拓宽我的编程知识,同时希望在这个过程中也能在 php 方面变得更好。

实现此目的的一种方法是查看使用 C 或 C++ 编写的 PHP 扩展。

谁能说出哪种语言更适合完成这项任务?

我知道这两种语言非常相似,而且 c++ 允许面向对象的代码,但是 c 会更快并且更适合 php 扩展吗?

最佳答案

这可能对您有帮助:http://devzone.zend.com/article/1021 (不仅仅是你问题的答案)。

This tutorial assumes basic familiarity with both the PHP language and the language the PHP interpreter is written in: C.

所以你不能使用C++。如果你想使用 C++,你应该看看这个 article .
谢谢 Christoph 指出这一点。

关于php - 为 php 扩展学习 C 或 C++,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4114138/

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