Missing argument 1 for Cat::chat(), called on line 29 and define
Mario6961
-
Nhay Messages postés 838 Date d'inscription Statut Membre Dernière intervention -
Nhay Messages postés 838 Date d'inscription Statut Membre Dernière intervention -
Bonjour, je suis en train de faire l'avant dernier exercice avec le chat mais j'obtien sur le mini navigateur cela :
"Meow meowMissing argument 1 for Cat::chat(), called on line 29 and defined (line 21)Le chat se s'appel : CodeCat."
Je voudrais que ca affiche seulement Meow Meow Le chat s'appel : CodeCat
Pouvez vous me dire ce qu'il cloche avec mon code svp. Merci d'avance.
"Meow meowMissing argument 1 for Cat::chat(), called on line 29 and defined (line 21)Le chat se s'appel : CodeCat."
Je voudrais que ca affiche seulement Meow Meow Le chat s'appel : CodeCat
Pouvez vous me dire ce qu'il cloche avec mon code svp. Merci d'avance.
<!DOCTYPE html>
<html>
<head>
<title> Un petit défi ! </title>
<link type='text/css' rel='stylesheet' href='style.css'/>
</head>
<body>
<p>
<?php
class Cat {
public $isAlive = true;
public $numLegs =4;
public $name;
public function __construct($name) {
$this->name = $name;
}
public function Meow() {
return "Meow meow";
}
public function chat($name) {
return "Le chat se s'appel : ". $this->name .".";
}
}
$cat = new Cat("CodeCat");
echo $cat->Meow();
echo $cat->chat();
?>
</p>
</body>
</html>
A voir également:
- Missing argument 1 for Cat::chat(), called on line 29 and define
- Downloader for pc - Télécharger - Téléchargement & Transfert
- Idm for mac - Télécharger - Téléchargement & Transfert
- Instagram for pc - Télécharger - Divers Communication
- Microsoft store download for pc - Guide
- Winrar for pc - Télécharger - Compression & Décompression