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 line of code in the source code of a web page and I couldn't understand it. Please give me an answer.

WBOY
Release: 2016-08-31 08:54:55
Original
1532 people have browsed it

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 &copy; ~php~~ echo date('Y'); ~/php~~ ~$tit~~ ~$jscode~~</code>
Copy after login
Copy after login

The complete content of this file is as follows:
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.

Please tell me what the above sentence means? ? ?

Reply content:

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 &copy; ~php~~ echo date('Y'); ~/php~~ ~$tit~~ ~$jscode~~</code>
Copy after login
Copy after login

The complete content of this file is as follows:
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.

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

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>
Copy after login
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.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template