Why does <? PHP} appear in the curly braces of the if statement in PHP? >

if ($_ session [user] = "tsoft" & & $_ session [PWD] = = "111") {
? >

< TD width= "70" > | user Management < / TD >

}
? >

know that curly braces correspond one to one, but why can they be written in two separate sentences?

is there an official statement or anything else that can be written separately in two sentences?

Thank you

Php
Jan.08,2022

anything other than a pair of opening and closing tags is ignored by the PHP parser, which allows PHP files to have mixed content.
document address

give an example:

 

Thank you for the invitation.

It doesn't matter whether

is continuous or not. PHP is a scripting language born with template function, so outside the box, you can think of it as many large string fragments, which can do conditional rendering, circular rendering, and so on. Anyway, what the client wants (request) is the pure text of the web page, so just throw it back (response) after the server has finished running and spelling it out.

Menu