Everyone knowsFrom the PHP simple program example, we can see that the PHP language is embedded in "< ?php…?>" or "< ?…?> ” the part between. The final result of this program will be:
Hello World!
But it is recommended that you use to write your program in this way, in the default settings of php In the file php.ini, this setting value is usually Off. If you need to turn on this setting, you can refer to the setting of "short_open_tag = Off" in php.ini.
phpinfo
The following is an example of a simple PHP program that outputs PHP settings on the standard output device, such as PHP variables, modules:
<ol class="dp-xml"> <li class="alt"><span><span class="tag"><</span><span> ?php </span></span></li><li><span>phpinfo(); </span></li><li class="alt"><span class="tag">?></span><span> </span></span></li> <li><span> </span></li> </ol>