first commit
This commit is contained in:
10
Etudiant.php
Normal file
10
Etudiant.php
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
class Etudiant{
|
||||||
|
|
||||||
|
private $nom;
|
||||||
|
|
||||||
|
public function setNom($n){
|
||||||
|
$this->nom = $n;
|
||||||
|
}
|
||||||
|
}
|
11
script1.php
Normal file
11
script1.php
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
include "Script2.php";
|
||||||
|
require_once "Etudiant.php";
|
||||||
|
|
||||||
|
echo "Script 1 et 2";
|
||||||
|
|
||||||
|
traitementPrive();
|
||||||
|
|
||||||
|
|
||||||
|
$etu1 = new Etudiant();
|
||||||
|
$etu1->nom ="Durand";
|
3
script2.php
Normal file
3
script2.php
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
echo "bienvenue";
|
Reference in New Issue
Block a user