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 - PHP Tutorial
From the course: PHP Essential Training
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Variables7m 50s
-
(Locked)
Strings4m 38s
-
(Locked)
String functions8m 53s
-
(Locked)
Numbers, part 1: Integers6m 27s
-
(Locked)
Numbers, part 2: Floating points5m 25s
-
(Locked)
Arrays10m
-
(Locked)
Associative arrays6m 37s
-
(Locked)
Array functions6m 33s
-
(Locked)
Booleans3m 50s
-
(Locked)
NULL and empty5m 15s
-
(Locked)
Type juggling and casting8m 27s
-
(Locked)
Constants4m 43s
-
(Locked)
-
-
-
-
-