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 inside 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?
Created in 1994 by Rasmus Lerdorf, the very first incarnation of PHP was a simple set of Common Gateway Interface (CGI) binaries written in the C programming language.
Internal Built-in Functions in PHPConverting a string of letters to uppercase and lowercase. Displaying and using the date and time. Initializing and closing a database connection. Declaring and using an array.
PHP is written in the high-level C programming language. The first generation of PHP was PHP/FI created in 1994 by Rasmus Lerdorf. He wrote it to track visitors to his resume. The thing that allowed him to easily create the first home page with PHP was the ability to embed the PHP code within HTML markup.
In PHP, the function name is any name that ends in an open and closed parenthesis. The keyword function is often used to start a function name. To invoke a function, simply type its name followed by the parenthesis. A number cannot be the first character in a feature name.
PHP has been written in what I call the mother of languages ^C^
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With