Php outputs empty PHPcode in HTML & lt ;? Php $ a & quot; 1 & quot ;;? & Gt; & lt; html & gt; & lt; head & gt; & lt; title & gt; test & lt; title & gt; & lt; head & gt; & lt; body & gt; 1. method 1: & lt; br & gt; I want to output the value of this variable & amp; nbs php. the output variable in HTML is empty.
PHP code
Test1. Method 1:
I want to output the value of this variable
2. Method 2:
I want to output the value of this variable
------ Solution --------------------
Enable the short Mark function
However, it is generally not recommended to do this.
------ Solution --------------------
Open the short tag
------ Solution --------------------
It is best not to open it. I cannot tell why. the beginning of XML is
">
------ Solution --------------------
In php. ini, remove the semicolon (;) from the short_open_tag. Set it to On. remember to restart apache.
If the field tag is not enabled, it is written in the standard format.
------ Solution --------------------
Discussion
The tool I used is DW. how can I open the short tag and what will happen after it is opened?
If the short tag function is not enabled, how can I write link parameters?
For example, "> How do I write a label that does not enable short tags?
------ Solution --------------------
Take a look at the FAQ in the top post...
If a short tag is opened, it is easy to confuse it with some other language code, resulting in greater confusion.
------ Solution --------------------
Sorry, I just found that long labels cannot be like this. , #6 #7. the reply is correct. Discussion
It is best not to open it. I cannot tell why. the beginning of XML is
">