Utilizor
Contact Us

PHP Strings

String functions and manipulation.

PHP Strings

A string is a sequence of characters, like "Hello world!".

Strings are surrounded by quotes. You can use single or double quotes.

Common String Functions

  • strlen() - Return the Length of a String
  • str_word_count() - Count Words in a String
  • strrev() - Reverse a String
  • strpos() - Search For a Text Within a String
  • str_replace() - Replace Text Within a String