Exercice1

Tableau indexé

Exemple

Dans le dossier tableaux, ajoutez le fichier exercice1.php

Exercice :

  • Ajoutez dans le haut de votre fichier une variable $tabIndex qui contient votre nom, prénom et age

  • Affichez la phrase : je m'appelle nom prenom, j'ai age ans.

CTRL+C pour copier, CTRL+V pour coller
1
<!DOCTYPE html>
2
<html lang="fr">
3
4
<head>
5
    <title>PHP Tableaux</title>
6
    <meta charset="UTF-8" />
7
</head>
8
9
<body>
10
  <h1>je m'appelle nom prenom, j'ai age ans.</h1>
11
</body>
<!DOCTYPE html>
<html lang="fr">

<head>
    <title>PHP Tableaux</title>
    <meta charset="UTF-8" />
</head>

<body>
  <h1>je m'appelle nom prenom, j'ai age ans.</h1>
</body>