Posts
Showing posts from July 12, 2015
Strings in PHP, String Functions & Operations on Strings.
- Get link
- X
- Other Apps
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. strpos() string position function output of the function 3. strrev(); --Reverse the entered String. Reverse the string strrev() source code Output of original string along with revered string 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