PHP Coding Style 基本原則 延伸原則 檔案 最後空行 Class 建構子/解構子放置位置 Function Return 前空行
基本上遵照 PSR 提供的原則進行,我們目前採納以下原則,請先進行閱讀
__construct() 放最上面,__destruct() 放最下面
__construct()
__destruct()
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up