Home >Backend Development >PHP Tutorial >I saw a line of code in the source code of a web page and I couldn't understand it. Please give me an answer.
I saw a code in the source code of a webpage and I can’t understand it. Please ask an expert for an answer
<code>Copyright © ~php~~ echo date('Y'); ~/php~~ ~$tit~~ ~$jscode~~</code>
The complete content of this file is as follows:
Please tell me what the above sentence means? ? ?
I saw a code in the source code of a webpage and I can’t understand it. Please ask an expert for an answer
<code>Copyright © ~php~~ echo date('Y'); ~/php~~ ~$tit~~ ~$jscode~~</code>
The complete content of this file is as follows:
Please tell me what the above sentence means? ? ?
Thanks for the invitation.
It’s just a syntax for a template engine implemented by yourself.~php~~
is equivalent to <?php
~/php~~
is equivalent to ?>
As for ~$tit~~
, it is equivalent to the short markup syntax =$tit?>
I haven’t seen it before, but it shouldn’t have any special meaning. It’s a template tag customized by a niche engine. It should be equivalent to
<code><?php echo date('Y')?> <?php echo $tit?> <?php echo $jscode?></code>It has no research value, you can just write it like this.
Thank you for the invitation. This should be a custom short tag
The front should be a copyright statement, and the back is a grammatical issue.