Skip to content

Instantly share code, notes, and snippets.

@kenta-polyglot
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenta-polyglot/c97dfe31a3d356f86c84 to your computer and use it in GitHub Desktop.
Save kenta-polyglot/c97dfe31a3d356f86c84 to your computer and use it in GitHub Desktop.
<?php
Class CodeTest{
public $name;
public function __construct($name = '名無し'){
$this->name = $name;
}
public function morning(){
echo $this->name."さん、おはようございます。";
}
public function daytime(){
echo "こんにちは!!".$this->name."さん";
}
public function night(){
echo $this->name."さん、こんばんはー。";
}
public function goodNignt(){
echo $this->name."さん、おやすみなさい";
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment