htmlspecialchars_decode():Convert special HTML entities back to characters
|
|
|
Topic » Language » PHP » String |
Post By : Rainrays At
2010-05-07 12:20:11
|
|
htmlspecialchars_decode():Convert special HTML entities back to characters
string htmlspecialchars_decode(string $string,int $quote_style)
quote_style
ENT_QUOTES Will convert both double and single quotes
ENT_NOQUOTES Will leave both double and single quotes unconverted
ENT_COMPAT Will convert double-quotes and leave single-quotes alone (default)
It will return covrrted string
echo htmlspecialchars_decode($strng);
echo htmlspecialchars_decode($strng, ENT_NOQUOTES);
?>
crc32(),md5(),sha1()
|
|
crc32(): Calculates the crc32 polynomial of a string
sha1():Calculate the sha1 hash of a string
";
$val = md5("Pankaj Raghuwanshi");
echo $val;
echo " ";
$val = sha1("Pankaj Raghuwanshi");
echo $val;
?>
O/P:
More...
|
Refer to Friend
|
|
|
|
|
|
|
|
Create Your Profile in Category »
String
|
|
|
|