A string is series of characters. These can be used to store any textual information in your application.
There are a number of different ways to create strings in PHP.
### Single Quotes
Simple strings can be created using single quotes.
```PHP
$name = 'Joe';
```
To include a single quote in the string, use a backslash to escape it.
```PHP
$last_name = 'O\'Brian';
```
### Double Quotes
You can also create strings using double quotes.
```PHP
$name = "Joe";
```
To include a double quote, use a backslash to escape it.
```PHP
$quote = "Mary said, \"I want some toast,\" and then ran away.";
```
Double quoted strings also allow escape sequences. These are special codes that put characters in your string that represent typically invisible characters. Examples include newlines `\n`, tabs `\t`, and actual backslashes `\\`.
You can also embed PHP variables in double quoted strings to have their values added to the string.
```PHP
$name = 'Joe';
$greeting = "Hello $name"; // now contains the string "Hello Joe"