Loading video...
String Data Type
- The string data type is for representing a series, or 'string', of characters.
- String literals can be specified in four ways:
- single quotes
- double quotes
- heredoc syntax
- nowdoc syntax
- Escape sequences are specific character sequences used within string literals to represent special characters, such as tabs and newlines.
- Single-quoted string literals do not allow any escape sequences except those for the single quote and the backslash.
- Double-quoted string literals allow for the use of more escape sequences than single-quoted literals and also allow for variable interpolation.
- Variable interpolation is the process where variable names in string literals are replaced by the variable's current value.
- Additional Resources:
String Data Type
Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.

































Start Learning Now
Our free lessons will get you started (Flash® 10 required).
Sign up for Educator.comGet immediate access to our entire library.
Features Overview