update
This commit is contained in:
29
DEV.2.2/TP/TP1/ex2.php
Normal file
29
DEV.2.2/TP/TP1/ex2.php
Normal 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>
|
Reference in New Issue
Block a user