我們必須如何記錄(與phpDocumentor)定義與define()在PHP中的常量?什麼是正確的方式來記錄PHP常量(定義)與phpDocumentor
我什麼也沒有發現在這個文檔中,卻發現下面的例子(我沒有看到它的使用)在sample2.php:
/**#@+
* Constants
*/
/**
* first constant
*/
define('testing', 6);
/**
* second constant
*/
define('anotherconstant', strlen('hello'));
誰能告訴我什麼是記錄常數的最佳方式在PHP與phpDocumentor?
沒有特別的標籤是必要的。出現在示例頂部的「模板標籤」僅作爲將您的「常量」描述片段添加到每個單獨描述中的快捷方式(「第一個常量」,「第二個常量」)。只有確實需要將一些常見文本放入多個單獨的描述中時,才需要使用該模板標籤。 – ashnazg 2011-09-01 20:50:29
所有鏈接都已死亡 – Loenix 2016-10-18 07:45:44