It convert logical Hebrew text to visual text with newline conversion
Tag Archives: Functions
hebrev()
It converts logical Hebrew text to visual text
get_html_translation_table()
It returns the translation table used by htmlspecialchars() and htmlentities()
Example
<?php
print_r (get_html_translation_table(HTML_ENTITIES));
?>
fprintf()
It writes a formatted string to a specified output stream
Example
<?php
$fp = fopen(“test.txt”,”w”);
echo fprintf($fp,”%s”,”phpcode”);
?>
Output
7
explode()
It splits a string by string
Example
<?php
echo “<pre>”;
print_r(explode(” “,”php jsp asp”));
?>
Output
Array
(
[0] => php
[1] => jsp
[2] => asp
)
echo()
It outputs one or more strings
Example
<?php
echo (“phpcode”);
?>
Output
phpcode
crypt()
It returns a string encrypted using DES, Blowfish, or MD5 algorithms.
Example
<?php
echo crypt(“phpcode”);
?>
Output
$1$IPvU1z.J$K0G7fAVaDY7KBRpEJcB62/
crc32()
It calculates a 32-bit CRC for a string
Example
<?php
echo crc32(“phpcode”);
?>
Output
975211817
count_chars()
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
)
convert_uuencode()
It Uuencode a string
Example
<?php
echo convert_uuencode(“phpcode”);
?>
Output
‘<&AP8V]D90“ `