String Operators [#23] Code Dynamic Websites with PHP

preview_player
Показать описание
Lecture 23: String Operators

This one's nice and simple: there are only two string operators. The first one is called the concatenation operator ".", which combines the value of the right argument with the left argument. Let's look at it like this:

$a = "Hola ";

$b = $a . "Mi Amigos!";

echo $b; // This prints "Hola Mi Amigos!"

The second operator is the concatenating assignment operator ".=", which appends the value in the right with the value in the left, like this:

$a = "Hola ";

$a .= "Mi Amigos!";

echo $a; // This prints "Hola Mi Amigos!"

The concatenating assignment operator is considered an "Assignment Operator" which we will be learning more about in the next lecture.

DOWNLOAD COURSE FILES HERE
Рекомендации по теме
Комментарии
Автор

Your tutorials are by far the best on YouTube!! Thank you so much, you are a great teacher.

Side Note: I feel like you have been producing this entire series without stopping and this is the video where you need something to keep you going (Explosion, Spinning, No Space Picture, Swipe Effect). Haha I have watched them all through - basically without stopping...Thanks for keeping them exciting, 23 videos in!

JohnFlick
Автор

I liked the way you try to make these lectures not boring, by using fake espanol accent. HAhaha

blacktulippro
Автор

You missed a "S" from the word "mi" it is "mis", "mis amigos", "mi" is singular of Spanish.

risshoro