English

Explain any two string manipulation function. - Information Technology

Advertisements
Advertisements

Question

Explain any two string manipulation function.

Answer in Brief

Solution

Function Description
strlen() Returns the length of a string (i.e. total no. of characters)
str_word_count() Counts the number of words in a string
strrev() Reverses a string
strpos() Searches for a specific text within a string and returns the character position of the first match and if no match is found, then it will return false
str_replace() Replaces some characters with some other characters in a string
shaalaa.com
  Is there an error in this question or solution?
Chapter 5: Server-Side Scripting (PHP) - Exercises [Page 78]

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×