Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What language are inbuilt PHP functions written in?

Tags:

php

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?

like image 394
Waren Avatar asked Mar 06 '10 18:03

Waren


People also ask

Is PHP built-in C?

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.

Which are PHP inbuilt functions?

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.

What is PHP written in?

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.

How functions are created in PHP?

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.


1 Answers

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

like image 188
Sarfraz Avatar answered Oct 26 '22 17:10

Sarfraz