Created
June 6, 2012 10:08
-
-
Save scarwu/2881100 to your computer and use it in GitHub Desktop.
My PHP Style
This file contains hidden or 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
/** | |
* 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