开发者

What language are inbuilt PHP functions written in?

开发者 https://www.devze.com 2022-12-21 23:02 出处:网络
This may sound like a stupid question but I\'m a beginner not just to PHP but to programming in general, so in that context:

This may sound like a stupid question but I'm a beginner not just to PHP but to programming in general, so in that context:

What language are inbuilt PHP functions written in?

For example the inbuilt function "date("l")" when echoed will dislay the current day on the browser. But obviously this isn't done by magic, some one had to write this function, I am merely calling it.

A function as I understand it, is a way to contain a lot of PHP commands insi开发者_如何学运维de one call, and all those containing commands are written in PHP as well. But when it comes to the inbuilt function libraries, are these written in PHP or some other language?

And secondly, I have been told that the core of PHP 5 is written in C++ is this true?


PHP has been written in what I call the mother of languages ^C^


PHP was written in C. Any language above machine code for the specific processor architecture is written in a lower-level language. These abstractions into higher-level languages are an effort to make programming simpler and more productive.


PHP is in C, parts of it and some of is extension are written in C++.


You can see it's source code on GitHub - https://github.com/php/php-src

0

精彩评论

暂无评论...
验证码 换一张
取 消