PHP coding specification (28 ). 10 Sample Code ** @ (#) Cngift. php1.82030625 ** sample document written by the blooming Stone * will provide a simple demonstration of the encoding specifications ** require ("db. php "); *** demonstration class **
10 Sample code
/*
* @ (#) Cngift. php 1.82 03/06/25
*
* Sample documents written by blooming stones
* Simple demonstration of coding specifications
*
*/
Require ("db. php ");
/**
* Demonstration class
*
* @ Version 1.82 03.06.25
* @ Author Blossom Stone
*/
Class Blah extends SomeClass {
/* This class runtime annotation is written here */
/** Write comments on variables here */
Static int $ classVar1;
/**
* Write comments on multiple lines of variables here
*/
Static string classVar2;
/** Variable document comment */
Int instanceVar1;
/** Variable document comment */
Int [] instanceVar3;
/**
* Constructor comments
*/
Function Blah (){
//... Execute here...
}
/**
*... Function documentation comment...
*/
Function doSomething (){
//... Execute here...
}
/**
*... Method annotation document ..
* Multi-line comment
*/
Public void doSomethingElse (Object someParam ){
//... Execute here...
}
}
Sample http://www.bkjia.com/PHPjc/532576.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/532576.htmlTechArticle10 code/** @ (#) Cngift. php 1.82 03/06/25 ** sample document written by the blooming Stone * will provide a simple demonstration of the encoding specifications **/require ("db. php ");/*** demonstration class **...