Created
January 28, 2017 21:51
-
-
Save cyrilletuzi/fe88190c003eef61e0f1ed2ed24a97db 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 User { | |
public $firstName; | |
public function __construct($firstName) { | |
$this->firstName = $firstName; | |
} | |
public function sayHello() {} | |
} | |
$myUser = new User('Henri'); | |
$myUser->firstName; | |
$myUser->sayHello(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment