Created
September 28, 2017 09:47
-
-
Save platoosom/9fc3d76e657c0e3c36926100b65aba22 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 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