It returns numeric formatting information
Example
<?php
print_r(localeconv());
?>
It returns numeric formatting information
Example
<?php
print_r(localeconv());
?>
It calculate Levenshtein distance between two strings
Example
<?php
echo levenshtein(“phpcode”,”phpcodez”);
?>
Output
1
It make a string’s first character lowercase
Example
<?php
echo lcfirst(“PHPcode”);
?>
Output
pHPcode
Its an alias of implode() and joins array elements with a string
Example
<?php
$arry = array(“PHP”,”HTML”,”JS”);
echo join(“,”,$arry);
?>
Output
PHP,HTML,JS
It joins array elements with a string
Example
<?php
$arry = array(“PHP”,”HTML”,”JS”);
echo implode(“,”,$arry);
?>
Output
PHP,HTML,JS
It converts predefined characters to HTML entities. The predefined characters are:
Example
<?php echo htmlspecialchars("<a href='http://phpcodez.comt'>phpcode</a>"); ?>
Output
<a href=’http://phpcodez.comt’>phpcode</a>
It convert special HTML entities back to characters
Example
<?php
echo htmlspecialchars_decode(“<p>php >”);
?>
Output
php >
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”);
?>