PHP STRING FUNCTIONS
PHP string functions are allow you to manipulate strings in the programming world.Apart from this strings are part of the PHP.
PHP string Functions:
Functions Descriptions
1. addcslashes( ) Returns a string with backslashes in front of the specified
characters
2.addslashes( ) Retuns a string with backslashes in front of predefined characters
3.bin2hex( ) Converts a string of ASCII characters to hexadecimal
values
4.chop( ) Alias of rtrim( )
5.echo( ) Output strings
6.explode( ) Breaks a strings into an array
7.fprintf( ) Write a formatted string to a specified otput stream
8.implode( ) Returns a string from the elements of an array
9.join ( ) Alias of impolde
10.md5 () Calculates the md5 hash of a string
11.md5 file( ) Calculates the md5 hash of a file
12.metaphone ( ) Calculates the metaphone key of a string
13.money format ( ) Returns a string formatted as a currency string
14.print( ) Outputs a string
15.printf( ) Outputs a formatted string
16.str word count ( ) Count the number of words in a string
17.strlen( ) Returns the length of the string
18.str shuffle( ) Randomly shuffle all characters in a string
19.strtolower( ) Converts a string into lowercase letters
20.strtoupper( ) Converts a string into uppercase letters
21.strtr( ) Translates certain characters in a string
22.trim ( ) strips whitespace from both sides of a string
23.ucfirst( ) Converts the first character of a string to uppercase
24.ucwords( ) Converts the first character of each word in a string to
uppercase
25.vfprintf( ) Writes a formatted string to a specified output stream
26.vprintf( ) Outputs a formatted string
27.vsprintf( ) Writes a formatted string to a variable
28.wordwrap( ) Wraps a string to a given number of characters
PHP string functions are allow you to manipulate strings in the programming world.Apart from this strings are part of the PHP.
PHP string Functions:
Functions Descriptions
1. addcslashes( ) Returns a string with backslashes in front of the specified
characters
2.addslashes( ) Retuns a string with backslashes in front of predefined characters
3.bin2hex( ) Converts a string of ASCII characters to hexadecimal
values
4.chop( ) Alias of rtrim( )
5.echo( ) Output strings
6.explode( ) Breaks a strings into an array
7.fprintf( ) Write a formatted string to a specified otput stream
8.implode( ) Returns a string from the elements of an array
9.join ( ) Alias of impolde
10.md5 () Calculates the md5 hash of a string
11.md5 file( ) Calculates the md5 hash of a file
12.metaphone ( ) Calculates the metaphone key of a string
13.money format ( ) Returns a string formatted as a currency string
14.print( ) Outputs a string
15.printf( ) Outputs a formatted string
16.str word count ( ) Count the number of words in a string
17.strlen( ) Returns the length of the string
18.str shuffle( ) Randomly shuffle all characters in a string
19.strtolower( ) Converts a string into lowercase letters
20.strtoupper( ) Converts a string into uppercase letters
21.strtr( ) Translates certain characters in a string
22.trim ( ) strips whitespace from both sides of a string
23.ucfirst( ) Converts the first character of a string to uppercase
24.ucwords( ) Converts the first character of each word in a string to
uppercase
25.vfprintf( ) Writes a formatted string to a specified output stream
26.vprintf( ) Outputs a formatted string
27.vsprintf( ) Writes a formatted string to a variable
28.wordwrap( ) Wraps a string to a given number of characters
No comments:
Post a Comment