It convert all applicable characters to HTML entities
Example
<?php
echo htmlentities(“<a>PHP<a> <br /> <p>HTML</p>”);
?>
Output
<a>PHP<a> <br /> <p>HTML</p>
It convert all applicable characters to HTML entities
Example
<?php
echo htmlentities(“<a>PHP<a> <br /> <p>HTML</p>”);
?>
Output
<a>PHP<a> <br /> <p>HTML</p>
It convert all HTML entities to their applicable characters
Example
<?php
echo html_entity_decode(“PHP & HTML”);
?>
Output
PHP & HTML
It decodes a hexadecimally encoded binary string
Example
<?php
echo hex2bin(“d706c6520686578206461”);
?>
It convert logical Hebrew text to visual text with newline conversion
It converts logical Hebrew text to visual text
It returns the translation table used by htmlspecialchars() and htmlentities()
Example
<?php
print_r (get_html_translation_table(HTML_ENTITIES));
?>
It writes a formatted string to a specified output stream
Example
<?php
$fp = fopen(“test.txt”,”w”);
echo fprintf($fp,”%s”,”phpcode”);
?>
Output
7
It splits a string by string
Example
<?php
echo “<pre>”;
print_r(explode(” “,”php jsp asp”));
?>
Output
Array
(
[0] => php
[1] => jsp
[2] => asp
)
It outputs one or more strings
Example
<?php
echo (“phpcode”);
?>
Output
phpcode
It returns a string encrypted using DES, Blowfish, or MD5 algorithms.
Example
<?php
echo crypt(“phpcode”);
?>
Output
$1$IPvU1z.J$K0G7fAVaDY7KBRpEJcB62/