How do I convert characters to HTML entities using PHP?
<?php
$address = "www.food.com?blah=this and that&blah2=done";
echo HTMLentities($address);
//www.food.com?blah=this and that&blah2=done
?>
Comment on this Question and Answer >>>
ASK A QUESTION
More strings PHP Questions
How do I make the first letter of each word upper case?How do I turn a string into an array?
How do I count the number of words in my text?
How do I calculate the metaphone of a string?
How do I format the output of a string?
