Php: php code start flag type: today, when I look at other people's php code, I found that the results still really output 'test'. so I changed the code to the following: there is no structure, so I am more curious. Start searching for materials... Online Materials: short tags, long tags, terminal tags are rarely used, instructions & lt ;?, It and & lt ;? Echo is equivalent, but before using it, you need to open short. today, when reading other people's php code, we find that
The result also outputs 'test'
So I changed the code to the following:
No structure, so I'm more curious. Start searching for materials...
Online materials:
Is short label, Is a long label, terminal labels are rarely used, instructions , It and It is equivalent, but short_open_tag must be enabled before use.
What is short_open_tag?
Determine whether to allow the abbreviated form of the code start sign ( ).
You can configure php. ini.
Problem: I checked my php. ini configuration file and found that the short_open_tag was not opened. For example:
But why is it still usable? Is there multiple php. ini, I don't know, so I can view it through phpinfo ();
Short_open_tag = Off is found.
So Why can it be used?
So I will start short_open_tag, that is, set short_open_tag = On, and then restart the server. Found
You can output the result.
Summary: What short_open_tag originally controls is Label. Instead Tag, Labels are used to output variables. When short_open_tag is enabled, Functions and Same.
If asp_tags = ON is set, we can play it like this.
<%$a='hello';echo$a;%>
The php Version used in the remarks is: PHP Version 5.5.12
Now let's sum up several PHP start and end tags.
'). AddClass ('pre-numbering '). hide (); $ (this ). addClass ('Has-numbering '). parent (). append ($ numbering); for (I = 1; I <= lines; I ++) {$ numbering. append ($ ('
'). Text (I) ;}; $ numbering. fadeIn (1700) ;}) ;}; script
The above describes the code start flag type in php, including the php content, and hope to be helpful to friends who are interested in PHP tutorials.