A string is a data type used to represent text. It is a set of characters that can also contain spaces and numbers. For example, the word “Bootsity” and the phrase “Bootsity PHP Tutorials” are both strings. To declare strings we can write:

Copy to Clipboard