Aaron Dale, Web Developer

Projects - Feedback - Code

PHP Class

This is an example of a class in PHP.

//logged in user information class user{ public $user_id; public $username; public $roles; public $email; public $password; public function __construct(){ } public function showUserID(){ echo $this->user_id; } public function showUsername(){ echo $this->username; } public function showRole(){ echo $this->roles; } public function showEmail(){ echo $this->email; } public function showPassword(){ echo $this->password; } }

Portfolio - Feedback - Code