Does count PHP (and others languages) functions in models (query a COUNT() in SQL) should be named getCount($params) or count($params) ? Which is better ?
Thanks :)
Does count PHP (and others languages) functions in models (query a COUNT() in SQL) should be named getCount($params) or count($params) ? Which is better ?
Thanks :)
getCountXxx() will be a good practice,
Example :
function init_example(){
$user_count = getCountXxx('some data if required');
}
function getCountXxx('data'){
//perform count
return $count;
}