Last active
August 29, 2015 14:09
-
-
Save kenta-polyglot/c97dfe31a3d356f86c84 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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