PHP Learning Considerations Accumulate

Source: Internet
Author: User
1. About PHP Tags

In the study of PHP code, look at other people write files, many of them are only PHP start tag ,而没有结束标记。原来这是php官方手册的推荐写法。
如果文件内容是纯php代码,最好在文件末尾删除php结束标记。这可以避免在php结束标记之后万一意外加入了空格或者换行符,会导致php开始输出这些空白,而脚步中此时并无输出的意图。如下文件:

 

').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i <= lines; i++) { $numbering.append($('

  • ').text(i)); }; $numbering.fadeIn(1700); }); });

    以上就介绍了PHP学习注意事项积累,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

  • 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.