Enter your Sign-on user name and password.

Forgot password?
  • Follow us on:
Loading video...

Start Learning Now

Our free lessons will get you started (Flash® 10 required).
Get immediate access to our entire library.

Sign up for Educator.com

Features Overview

  • Get on-demand access to our complete library
  • Search and jump to exactly what you need to learn
  • Track your progress
  • Download practice and lesson files
  • *Ask questions and get answers from our community & instructors

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.

Computer Science: Introduction to PHP