PHP belgelerine bile underscore_vsCamelCase styling bu çeşitli değil, bir vahşi hayvan. Yani PHP belgelerin her türlü verilen şimdiye kadar gördüğüm - standart hangisi? IDE ve dokümantasyon kütüphanelerinin çoğunluğunun onları okuyabilir böylece nasıl fonksiyonları ve yöntemleri kadar belirgin olması gerekiyordu?
Aşağıdaki örneklerde, (tip) birisidir:
- bool
- int
- dizi
- nesne
- dizi
- şamandıra
ve isim ($ değerler gibi) param değişkenin sadece adıdır
/*
* Function name
*
* what the function does
*
* @param (type) about this param
* @return (type)
*/
function example((name))
/*
* What the function does
*
* @param (name) about this param
* @return (name)
*/
function example((name))
/**
* Function name
*
* what the function does
*
* @param (type) (name) about this param
* @return (type) (name)
*/
function example((name))
/**
* Function name
* what the function does
*
* Parameters:
* (name) - about this param
*/
function example((name))