Which of the following functions in PHP can be used to manipulate strings?

  • strlen()
  • str_replace()
  • substr()
  • All of the above
All of the given options are functions in PHP that can be used to manipulate strings. The strlen() function is used to find the length of a string. The str_replace() function is used to replace occurrences of a substring in a string. The substr() function is used to extract a portion of a string. These functions provide different ways to manipulate and work with strings in PHP. Learn more: https://www.php.net/manual/en/ref.strings.php
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *