It returns the translation table used by htmlspecialchars() and htmlentities()
Example
<?php
print_r (get_html_translation_table(HTML_ENTITIES));
?>
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/
It calculates a 32-bit CRC for a string
Example
<?php
echo crc32(“phpcode”);
?>
Output
975211817
It return information about characters used in a string
Example
<?php
echo “<pre>”;
print_r(count_chars(“phpcode”,1));
?>
Output
Array
(
[99] => 1
[100] => 1
[101] => 1
[104] => 1
[111] => 1
[112] => 2
)
It Uuencode a string
Example
<?php
echo convert_uuencode(“phpcode”);
?>
Output
‘<&AP8V]D90“ `
It decodes a uuencoded string
Example
<?php
echo convert_uudecode(convert_uuencode(“phpcode”));
?>
Output
phpcode
It converts from one Cyrillic character set to another
Example
<?php
echo convert_cyr_string(“phpcode Ã¥”,’w’,’a’);
?>
Output
phpcode