Short video - Les variables en PHP

25 Oct 2022 · 2 min
2:13

In this short French‑language tutorial, the speaker explains the fundamentals of variables in PHP. He starts by describing PHP as a weakly typed and dynamically typed language, emphasizing that variable types are not declared beforehand and can change at runtime (e.g., booleans can be cast to integers, numbers to strings). He then outlines the syntax rules: every variable name is prefixed with the dollar sign ($), may contain alphanumeric characters and underscores, and must follow proper naming conventions. Using a concrete example, he creates a variable $v with the string value "Bonjour", displays it with echo, and shows the result by running the script on a local server. Finally, he demonstrates how to inspect a variable’s type and value using the built‑in functions gettype (which returns "string") and var_dump (which outputs the type, length, and value). The tutorial combines conceptual explanation with live code demonstration.

Chapters

More from Yamossoun

8:56
youtube.com

Compteur synchrone - Logique séquentielle

2w ago
11:58
youtube.com

Compteur asynchrone et diviseur de fréquence - Logique séquentielle

3w ago
11:37
youtube.com

Les registres (parallèle et à décalage) - Logique séquentielle

1mo ago
6:14
youtube.com

Bascule T (Toggle) - Logique séquentielle

1mo ago
12:05
youtube.com

Bascule JK - Logique séquentielle

1mo ago
9:17
youtube.com

Bascule D flip-flop active sur front montant - Logique séquentielle

1mo ago
10:08
youtube.com

Bascule D Latch - Logique séquentielle

1mo ago
8:13
youtube.com

Bascule RS - Logique séquentielle

1mo ago
5:04
youtube.com

Logique séquentielle - Introduction

2mo ago
1:15
youtube.com

Le codeur - Logique combinatoire #codeur #logique #circuit #booleanlogic

2mo ago
1:56
youtube.com

Algorithme de calcule de la racine carrée par dichotomie #dichotomy #squareroot #algorithm

3mo ago
See all content