filmov
tv
Single quotes vs double quotes in PHP (plus how to do multi-line strings using heredocs and nowdocs)
Показать описание
To define a string in PHP, you can surround some text with single quotes, or with double quotes. So what's the difference?
The difference is how the contents of the string are evaluated.
In this video we'll learn the difference between single-quoted strings and double-quoted strings in PHP. We'll also learn how to use a heredoc and nowdoc to easily create a multi-line string. We'll learn about variable interpolation in double-quoted strings, and escape sequences to insert special characters.
Resources:
Code shown in the video:
0:00 Intro
0:19 Single-quoted strings
1:01 Double-quoted strings
2:10 Performance
2:49 Heredocs
4:12 Nowdocs
4:46 Summary
Single or Double Quotation Marks?
Difference between single and double quotes in Bash
Is It Better To Use Double OR Single Quotes in Python?
Single quotes vs double quotes in PHP (plus how to do multi-line strings using heredocs and nowdocs)
When to use single quotes vs double quotes. In Qlik Sense
Beginner Python Tutorial 19 - Double vs Single Quotes
When to use double or single quotes in JavaScript?
PHP Tips: Single or Double Quotes?
Python live streaming 10 hours part 159
What is the difference between single and double quotation marks?
Single Quotes vs Double Quotes
Double quotes vs. single quotes
SQL - When to Use Single or Double Quotes in Queries
C++ : What is the significance of single quotes vs double quotes in comparisons?
Double vs Single quotes
45. Single Quotes VS Double Quotes
C++ : Single quotes vs. double quotes in C or C++
difference between = and := in business central | difference between single quotes and double quotes
Quotation Marks | Double, Single and Reverse Quotes Explained
Bash | How to use quotes | double and single quotes | easy steps | Tutorial
Episode 4 - Single vs Double quotes in PHP
DIFFERENCE BETWEEN DOUBLE QUOTES AND SINGLE QUOTES
Single quotes vs. double quotes in Python
How to escape single (or double) quote in JavaScript (use backticks!)
Комментарии