From the course: PHP Essential Training

Unlock this course with a free trial

Join today to access over 25,600 courses taught by industry experts.

Strings

Strings

- [Instructor] In this movie, we're going to be learning about the data type called strings. Strings are a very common feature of most programming languages, and we've already been using strings without knowing it. A string is a set of characters. Those characters can be letters, numbers, symbols, and they're going to be defined inside quotation marks, either single quotes or double quotes. In non programming terms, you can think of a string as being text. In the last movie, we were working with hello world. Hello world is an example of a string. So is the BR tag. That's a string as well. It's defined inside those quotes. It is a string of text that we can then work with. Let's take our variables.php page and do a Save As on it, so that we can create a new one for strings. Strings.php saved in our sandbox and we'll call it strings. And I'm going to take all of the PHP that's in here, and let's just take it all out and…

Contents