Home  >  Article  >  Backend Development  >  PHP simple program example reference_PHP tutorial

PHP simple program example reference_PHP tutorial

WBOY
WBOYOriginal
2016-07-15 13:30:44944browse

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>


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/446257.htmlTechArticleEveryone knows that from the PHP simple program example, we can see that the PHP language is embedded in ?php? or? ? The part between. And the final result of this program will be: Hello World! But it is recommended that you use...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn