function add($clients){ $id = end($clients)[\'id\']; array_push($clients, [ "id" => ++$id, "nom" => $_POST["nom"], "adresse" =&