Apprendre le PHP - 14 - Les types et les conversions avec PHP 8
Merci à Pentiminax pour sa contribution le 28/08/2023
En PHP il existe au moins 10 types différents :
Les types scalaires (Scalar Types) :
- Boolean
- Integer
- Float
- String
Les types composés (Compound Types) :
- Array
- Object
Les types spéciaux (Special Types) :
- Null
- Resource
Retrouvez moi sur :
▶ Mon site https://pentiminax.fr
▶ Twitter : https://twitter.com/Pentiminax
★ Les meilleures formations pour apprendre à programmer ★
▶ Apprendre le C# - http://bit.ly/csharp-course-fr
▶ Apprendre le PHP - http://bit.ly/php-course-fr
★ Les meilleurs tutoriels ★
▶ Tutoriel C# en français : http://bit.ly/2TXDXtT
▶ Tutoriel Xamarin en français : http://bit.ly/xamarin-tutorial-fr
▶ Tutoriel PHP en français : http://bit.ly/2G4FgU1
Sommaire :
00:00 - Introduction
02:24 - Les types scalaires (Scalar Types)
04:32 - Obtenir le type d’une variable
05:59 - Les tableaux (Array)
07:35 - Jonglage de type (Type Juggling)
08:48 - Types strict (Strict Types)
09:32 - Conversion de type (Type Casting)
10:42 - Outroduction
Les types scalaires (Scalar Types) :
- Boolean
- Integer
- Float
- String
Les types composés (Compound Types) :
- Array
- Object
Les types spéciaux (Special Types) :
- Null
- Resource
Retrouvez moi sur :
▶ Mon site https://pentiminax.fr
▶ Twitter : https://twitter.com/Pentiminax
★ Les meilleures formations pour apprendre à programmer ★
▶ Apprendre le C# - http://bit.ly/csharp-course-fr
▶ Apprendre le PHP - http://bit.ly/php-course-fr
★ Les meilleurs tutoriels ★
▶ Tutoriel C# en français : http://bit.ly/2TXDXtT
▶ Tutoriel Xamarin en français : http://bit.ly/xamarin-tutorial-fr
▶ Tutoriel PHP en français : http://bit.ly/2G4FgU1
Sommaire :
00:00 - Introduction
02:24 - Les types scalaires (Scalar Types)
04:32 - Obtenir le type d’une variable
05:59 - Les tableaux (Array)
07:35 - Jonglage de type (Type Juggling)
08:48 - Types strict (Strict Types)
09:32 - Conversion de type (Type Casting)
10:42 - Outroduction