PHP » GoLang |
login |
register |
about
|
htmlentities(PHP 4, PHP 5, PHP 7) htmlentities — Convert all applicable characters to HTML entities Description
string htmlentities
( string
$string
[, int $flags = ENT_COMPAT | ENT_HTML401
[, string $encoding = ini_get("default_charset")
[, bool $double_encode = TRUE
]]] )This function is identical to htmlspecialchars() in all ways, except with htmlentities(), all characters which have HTML character entity equivalents are translated into these entities. If you want to decode instead (the reverse) you can use html_entity_decode(). Parameters
Return ValuesReturns the encoded string.
If the input Changelog
Examples
Example #1 A htmlentities() example
<?php
Example #2 Usage of
<?php See Also
|
more
Recently updated
more
Most requested
more
Last requests
|