Home >Backend Development >PHP Tutorial >Summary of related methods of PHP code escaping_PHP tutorial

Summary of related methods of PHP code escaping_PHP tutorial

WBOY
WBOYOriginal
2016-07-15 13:31:32852browse

We are using ?php

  1. echo trans($row_rs['content']); ?>
  2. You can apply different functions to escape PHP code as needed
  3. Supplement One point, if you display a section of the article in span and use substr to get a fixed-length string, remember to add an extra space after the span parameter, otherwise the html code will be messed up when half a Chinese character is cut off. http://www.bkjia.com/PHPjc/446203.htmlwww.bkjia.com
true

http: //www.bkjia.com/PHPjc/446203.html

TechArticle
We are using ?php echotrans($row_rs['content']); ? You can apply different ones according to your needs The function performs PHP code escaping. If you want to display a section of the article in span, use...

Statement:
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