Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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