PHP funkce html_entity_decode()

Dostupnost ve verzích: PHP 4.3.0

Convert all HTML entities to their applicable characters

Parametry

Parametr Datový typ Výchozí hodnota Poznámka
$string string není Zpracovávaný řetězec.
$quote_style int null, The optional second quote_style parameter lets you define what will be done with 'single' and "double" quotes. It takes on one of three constants with the default being ENT_COMPAT: Available quote_style constants
Constant Name Description
ENT_COMPAT Will convert double-quotes and leave single-quotes alone.
ENT_QUOTES Will convert both double and single quotes.
ENT_NOQUOTES Will leave both double and single quotes unconverted.
$charset string null The ISO-8859-1 character set is used as default for the optional third charset. This defines the character set used in conversion.

string

the decoded string.

Další zdroje

Oficiální dokumentace funkce html-entity-decode

AI konzultace & implementace

Pomohu vám zavést AI do vašeho projektu– od analýzy a návrhu řešení až po nasazení do produkce. Ušetřete čas, zjednodušte procesy a získejte konkurenční výhodu.

Domluvit konzultaci
Konzultant: Jan Barášek
Potřebujete poradit s PHP?

Nabízím trénink vývojářů, konzultace, školení a analýzu návrhových vzorů. Osobně v Praze nebo online.

Napište mi

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.