Use the include output page to show the number 1-PHP Tutorial

Source: Internet
Author: User
The number 1 include. php appears on the output page using include
Echo include 'include _ menu. php ';
?>
Include_menu.php
Echo 'homepage-HTML tutorial-PHP Tutorial ';
?>
There is a number at the end as shown in Figure 1. why?


Reply to discussion (solution)

Remove echo from include. php

Remove echo from include. php

Thank you very much.

Echo include 'include _ menu. php ';
?>

Change
Include 'include _ menu. php ';
?>

Because mongode_menu.php already has echo

What if two echo messages do not return an error?
Or, the reason for one output 1 is that include is successful, so output 1?
Solution

I don't quite understand this principle. is there a Boolean value returned by include? after the file is introduced successfully, true is returned, and then echo becomes 1?

What if two echo messages do not return an error?
Or, the reason for one output 1 is that include is successful, so output 1?
Solution

Your downstairs explanation may answer your questions.

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.