Created
September 29, 2017 06:48
-
-
Save platoosom/c4db8a73a4dd828e5f700a5fdb2b3a0c 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 People { | |
public $idcard; | |
public $name; | |
public function __construct() { | |
$this->idcard = ''; | |
$this->name = 'Unknow'; | |
} | |
public function setName($name) { | |
$this->name = $name; | |
} | |
} | |
$man = new People(); | |
echo $man->name; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment