PHP Html_entity_decode () applies to PHP 4.3.0+, which converts HTML entities into characters.
Html_entity_decode (a string containing an HTML entity, optionally how to decode quotes, optional character encoding sets)
If the string contains a
Well, because it is pure small white, this problem may be a bit of food, the Great God forgive me ...
is to write PHP, need to echo special characters, such as "This symbol, when writing to PHP with escape \" Good or HTML code
"Well, what?
Ask you,
PHP Html_entity_decode () applies to PHP 4.3.0+ and converts HTML entities into characters.
Html_entity_decode (string containing HTML entities, optional how to decode quotes, optional character encoding set)
If the string contains a character set
One, single and double-quote escape in PHP data stored in the process used more, that is, to store data in the database need to pay attention to escape single, double quotation marks;Say a few PHP functions first:1. addslashes- uses a backslash
Collect and sort some common PHP class libraries. collect and sort out some common PHP class libraries, resources, and skills so that you can quickly find what you need at work...
The content in this list includes awesome-php translation,
Summary of PHP-based programming considerations. 1. php implicit ternary operators (? :) Priority problem: Example 1: Copy the code as follows: $ person $ whoor $ personlaruence; is actually equivalent to: $ personempty ($ who )? La
1. php implicit
Recently encountered a problem, the data contains Chinese quotation marks, the results are escaped stored in the database, the data when the use of Htmlspecialchars_decode the entity escaped back, the results found not effective, looked at the
The format of a string is the processing of a string into a particular format. Usually the data that the user gives to the server from the form is in the form of strings, and in order to achieve the desired output, the strings need to be processed
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.