It parses the string into variables
Example
<?php
parse_str(“first=php&second=code”);
echo $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);
?>
It formats a number as a currency string
Example
<?php
echo money_format(1234.56,2);
?>
Output
1234.56
It calculate the metaphone key of a string
Example
<?php echo metaphone("phpcode"); ?>
Output
FPKT
It calculates the md5 hash of a string
Example
<?php
echo md5(“test”);
?>
Output
098f6bcd4621d373cade4e832627b4f6
It calculates the md5 hash of a given file
Example
<?php
echo md5_file(“test.txt”);
?>
Output
be6f273c2ae6f2740e395f525bf8b645
It strips whitespace from the beginning of a string
Example
<?php
echo ltrim(” phpcode”);
?>
Output
phpcode