It adds backslashes in front of some predefined characters in a string.
Example
<?php
echo quotemeta(“php(code)'”);
?>
Output
php(code)’
It adds backslashes in front of some predefined characters in a string.
Example
<?php
echo quotemeta(“php(code)'”);
?>
Output
php(code)’
It convert a 8 bit string to a quoted-printable string
Example
<?php
echo quoted_printable_encode(“php=0Acode”);
?>
Output
php=3D0Acode
It decodes a quoted-printable string to an 8-bit ASCII string
Example
<?php
echo quoted_printable_decode(“php=0Acode”);
?>
Output
php code
It output a formatted string
Example
<?php
parse_str(“first=php&second=code”);
printf(“%s%s”,$first,$second);
?>
Output
phpcode
It outputs a string
Example
<?php
parse_str(“first=php&second=code”);
print $first.$second;
?>
Output
phpcode
It parses the string into variables
Example
<?php
parse_str(“first=php&second=code”);
echo $first.$second;
?>
Output
phpcode
It return ASCII value of character
Example
<?php
echo “ASCII value of ‘a’ is “.ord(“a”);
?>
Output
ASCII value of ‘a’ is 97
It format a number with grouped thousands
Example
<?php
echo number_format(1233.56,2);
?>
Output
1,233.56
It inserts HTML line breaks before all newlines in a string
Example
<?php
echo nl2br(“phpncode “);
?>
Output
php
code
It returns specific local information.
Windows platforms does not support this function
Example
<?php
echo nl_langinfo($element);
?>