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

PHP simple program example reference_PHP tutorial

WBOY
Release: 2016-07-15 13:30:44
Original
987 people have browsed it

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>
Copy after login


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...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template