String: String is a sequence of Characters.
Strings Functions:
1. strlen(); --Returns the length of the String.
 |
Strlen() Function source code |
 |
Length of "Hello World!". |
2. strpos(); --Return the position of Substring or Second string in First String else return false.
4. str_word_count(); --Return the Worlds in String Space Separated.
 |
str_word_count() return the output total number of word in string. |
 |
output of the above code. |
5. str_replace(); --Function replace the first parameter,with second from third String.
 |
Source Code of str_replace() |
 |
output of above code. |
© 2015 Rajendra Kumar Yadav Learn Computer Tricks and Programming & Learn PHP