Skip to content

Instantly share code, notes, and snippets.

@scarwu
Created June 6, 2012 10:08
Show Gist options
  • Save scarwu/2881100 to your computer and use it in GitHub Desktop.
Save scarwu/2881100 to your computer and use it in GitHub Desktop.
My PHP Style
/**
* Constant
*/
define('PREFIX_NAME', 0);
/**
* Class
*/
class PrefixName {
// Private variable
private $_prefix_name;
// Public variable
public static $prefix_name;
public function _construct() {
// Variable
$this->_prefix_name = array();
// Static variable
self::$prefix_name = array();
}
// Class function
public function prefixName() {
// Variable and Array index
$prefix_name['prefix_name'] = 0;
}
}
/**
* Function
*/
function perfixName($prefix_name) {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment