This commit is contained in:
EmmanuelTiamzon
2025-09-30 09:43:41 +02:00
parent f7de13bc2a
commit 7019a3b7ea
176 changed files with 9458 additions and 149 deletions

29
DEV.2.2/TP/TP1/ex2.php Normal file
View File

@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="fr">
<head>
</head>
<body>
<?php
$clients = ["Luc", 7 => "Paul", 2 =>"Martin", "Arnaud"];
/*0;7;2;3*/
?>
<?php
$produits = [
20 => "Chemise",
3 => "Pantalon",
10 => "Jupe",
"Veste",
"Blouson" //clé : 12
];
?>
<?php
$array = ["a","b","c"]; //clé : 0;1;2
$array[] = "d"; //clé : 3
$array[10] = "j"; //clé : 10
unset($array[2]); //2
?>
</body>
</html>