Home>Article>Backend Development> How to write php entry file
First, let’s understand the running process of the framework:
Entry file-> Define constants-> Introduce function library-> Automatically load classes-> Start Framework-> Route Analysis-> Loading Controller-> Return Result
##Related recommendations: "php Getting Started Tutorial"
Entry file index.php:Public function function.php in the framework core directory:'.print_r($var,true).''; } } Framework core file imooc.php:Run the project, After accessing the entry file index.php, the browser outputs: ok as expected.The above is the detailed content of How to write php entry file. For more information, please follow other related articles on the PHP Chinese website!