When I read the PHP source code written in C , I cannot find the main() method; can someone help me?
main()
The main() functions in PHP are defined in SAPI because they are specific to the mode in which PHP is executed. For example, for the SAPI command line, it is defined in sapi/cli/php_cli.c ; for CGI / FastCGI SAPI, it is defined in sapi/cgi/cgi_main.c .
sapi/cli/php_cli.c
sapi/cgi/cgi_main.c
Some other SAPIs, such as apache2 SAPI, do not define the main() function at all, since they are loaded only as a separate separate executable file.
apache2
PHP does not have a main method such as C.
main
PHP runs from top to bottom or can be called from HTML using methods.
<?php echo "echo" echo "echo 2" ?>
PHP will run from an open tag to a closing tag.
Repeat echo and echo 2 in order.
echo
echo 2
Source: https://habr.com/ru/post/948514/More articles:Shared storage between multiple AWS EC2 instances - loggingHow to find all intersection points between two contour sets in an efficient way - python(Angular) insert object into json array - jsonMeasuring heap size increase after loading a large object - pythonSafari bug with border radius, rounded corners and weird background - cssResponse.Redirect exception inside try / catch block - c #Copy text to clipboard using Zero Clipboard in asp.net - c #Turn on SD card during USB debugging? - androidHow to open Android context menu with click button in listview adapter? - androidHow to get the row with the best number? - c #All Articles