PHP simple program example reference _ PHP Tutorial

Source: Internet
Author: User
PHP simple program example reference. We all know that the PHP language is embedded in the simple PHP program example? Php? Or ?? . The final result of this program will be: HelloWorld! However, we recommend that you use the PHP language embedded in the "<? Php...?>" Or "<?...>" . The final result of this program is:

Hello World!

However, we recommend that you use This method is used to write your program. The default setting file is php. in ini, this setting value is usually Off. if you need to enable this setting, you can refer to php. set "short_open_tag = Off" in ini.

Phpinfo

Below is a simple PHP program example that outputs PHP settings on a standard output device, such as PHP variables and modules:

 
 
  1. <? Php
  2. Phpinfo ();
  3. ?>


In the simple PHP program example, we can see that the PHP language is embedded in? Php? Or ?? . The final result of this program is: Hello World! However, we recommend that you use...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.