Skip to content

Instantly share code, notes, and snippets.

@platoosom
Created September 28, 2017 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save platoosom/9fc3d76e657c0e3c36926100b65aba22 to your computer and use it in GitHub Desktop.
Save platoosom/9fc3d76e657c0e3c36926100b65aba22 to your computer and use it in GitHub Desktop.
<?php
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