Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
class Post {
var $id;
var $title;
var $description;
public function __construct() {
$this->id = 12;
$this->title = 'None';
$this->description = 'Who know'
public function ID() {
return $this->id;
public function showID() {
echo $this->ID();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.