<?php
  if(isset($_POST["value"]) and $_POST["value"]>0 and $_POST["value"]<3){
    require("3_classe.php");
    $tab[0]=new Etudiant("Bosquet","Watson",21,"L3");
    $tab[1]=new Etudiant("Randriambololona","Arinjaka",21,"L3");
    echo json_encode($tab[$_POST["value"]-1]);
    //echo $tab[$_POST["value"]-1]->toJSON();
  }
?>	