date.chapril.org-framadate/app/inc/studs.inc.php
Olivier PEREZ fcaea63b84 A big part of refactoring
* Use Smarty to split View and Controller on studs page (work in progress)
* Add field "active" to Poll
* And some other stuff...
2014-12-12 13:46:55 +01:00

10 lines
166 B
PHP

<?php
function countStuds($subjects)
{
$nb = 0;
foreach($subjects as $subject) {
$nb += substr_count($subject->sujet, ',')+1;
}
return $nb;
}