Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
/**
* This is properties.
**/
class Post {
/**
* This is properties.
**/
$id = '';
$title = '';
$detail = '';
/**
* This is method.
**/
public function save() {
// Connect to database
// Save data to post table
// Return result
}
/**
* This is method.
**/
public function ID() {
return $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.