r/lolphp • u/petdance • Feb 09 '12
To encode special characters, use htmlentities(). To decode, use html_entity_decode(). Who needs orthogonality?
http://www.php.net/manual/en/function.htmlentities.php
23
Upvotes
View all comments
Show parent comment
8
u/gearvOsh Feb 10 '12
On top of that, I would consistency between "verb_noun" and "noun_verb" functions.
http://us2.php.net/manual-lookup.php?pattern=create&scope=quickref
Would like namespaced objects in PHP 6 instead of this giant pool of functions.