programming.name Posted March 28, 2010 Share Posted March 28, 2010 Hi, As you know, there are lots of built-in functions like empty(), isset(), date() and so on, as well as superglobal variables(arrays) such as $_SERVER, $_POST, etc. All I would like to know is that where they are defined. I viewed all the subfolders in php folder to try to find them if they were formed as the library function files that C language has. But I was not able to find it. So please give me some advice where the built-in functions and variables are defined. AND additionally, I also want to know how PHP's core syntax's rules(like operators' precedence, keywords, if, elseif(else if), while, for, etc.) are defined. Finally, as far as I know PHP has an interpreter instead of a complier. I also want to know where the interpreter is (if it exsits as a file) so that I can see the interpreter's internal. Thanks a lot. Link to comment https://forums.phpfreaks.com/topic/196826-where-are-built-in-functions-and-superglobal-variables-defined/ Share on other sites More sharing options...
TeddyKiller Posted March 29, 2010 Share Posted March 29, 2010 Is there any reason for this? Most of it should be hidden, otherwise you can just create your own code to do anything.. Link to comment https://forums.phpfreaks.com/topic/196826-where-are-built-in-functions-and-superglobal-variables-defined/#findComment-1033280 Share on other sites More sharing options...
trq Posted March 29, 2010 Share Posted March 29, 2010 All php's functions are defined within the source code to the extension they belong to. You'll need to download php as source (its written in C) from php.net if you would like to look at function definitions. Link to comment https://forums.phpfreaks.com/topic/196826-where-are-built-in-functions-and-superglobal-variables-defined/#findComment-1033284 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.