Type Juggling and Coercion in PHP

  Рет қаралды 68

Frank Prins

Frank Prins

Күн бұрын

In this video I'll go over all the nuances of type juggling, type coercion, dynamic types and some static types. I'll show some ways to make this less jarring, and to prevent bugs and security issues and decrease cognitive load in professional environments.
00:00 Intro
00:15 Dynamic types
00:46 Type declarations
01:05 Static types
01:28 Available types
02:16 Type casting
03:23 Type coercion
04:27 Disabling type coercion
05:08 Type juggling
05:27 Numeric context
06:01 String context
06:40 Comparative context
07:42 Logical context
08:28 Integral context
08:41 Function context
08:51 Non-strict functions
09:16 Switch/case
09:29 Empty
09:46 Short ternary
10:00 PHPStan/outro

Пікірлер
АЗАРТНИК 4 |СЕЗОН 1 Серия
40:47
Inter Production
Рет қаралды 1,4 МЛН
Will A Guitar Boat Hold My Weight?
00:20
MrBeast
Рет қаралды 197 МЛН
Modus males sekolah
00:14
fitrop
Рет қаралды 25 МЛН
Functions in Python are easy 📞
10:38
Bro Code
Рет қаралды 479 М.
I DONT USE NEXT JS
54:01
ThePrimeTime
Рет қаралды 358 М.
LET'S CODE a Command Module in #golang!
45:49
binary_soup
Рет қаралды 188
Programming w/o Language
1:47:00
Tsoding Daily
Рет қаралды 54 М.
BASIC in 2024 has Potential
2:09:01
Tsoding Daily
Рет қаралды 27 М.
Delivering Safe C++ - Bjarne Stroustrup - CppCon 2023
1:29:16
Environment Variables - Intro into modern PHP development
14:21
Service Container - Intro into professional PHP development
13:23