PHP Basics (1)-tag style, comment, form acquisition, string type, and variable parsing. PHP tag style: Recommended tag style, which can be used in XML documents? PhppXMLStylep ;?? P1_stylep ;? % PAspStylep; % scriptlanguagephp; echopScriptStylep PHP
The so-called mark, is to facilitate and other content to distinguish the use of a special symbol, PHP supports a total of 4 kinds of marker style, look.
1.XML marker Style
1
The XML style
ends with a tag. Write PHP code in the
The phpyii framework is used in the project. today, I read the standard documentation github. comyiisoftyiiwikiCore-framework-code-style, which says: The php file only needs to start the label & amp; lt ;? Php do not end the tag? & Amp; gt; It seems
Project to be useful to the PHP yii framework, today read the canonical document
Https://github.com/yiisoft/yii/wiki/Core-framework-code-style
Inside it says: Php file just start tag
不要结束标签 ?>, 印象中好像有看到其他框架也这么说过, 貌似会更安全, 为什么, 哪里有相关介绍?
Reply
Like other web languages, php uses a pair of tags to include part of the php code to distinguish it from html code. php has a total of four tag styles. 1. xml Style & lt ;? Phpecho & quot; this is an xml style tag & quot ;;? & Gt; xml-style tags are
Ziadoz a list of PHP resources that are maintained on GitHub, including libraries, frameworks, templates, security, code Analysis, logs, third-party libraries, configuration tools, Web tools, books, ebooks, classic blogs, and more. Bó Lè has
The number of PHP components and frameworks is incredibly large. There are mega-frameworks like Symfony and Laravel, as well as miniature frameworks like Silex and slim. There are even traditional frameworks that have existed long before modern PHP
Dependency ManagementDependency and Package Management Library
Composer/packagist: A package and dependency manager
Composer Installers: A multi-frame Composer Library Installer
Pickle: a php extension installer
Other
Other frameworksOther web development frameworks
Symfony cmf-Create a custom CMS Content management framework
KNP rad bundle-symfony 2 Fast Application (RAD) Pack
Framework ComponentsStandalone components from the Web development
PHP tag style when parsing a file, PHP will look for the start and end tags, that is
This tells PHP to start and stop parsing the code between the two. This resolution method allows PHP to be embedded in a variety of different documents, and any
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.