24.05.2016, 05:28
If the previous assignment of $count is a global (which should be avoided) then this:
does absolutely nothing because that local variable $count is not the same as the global variable $count. To reference a global variable in a method the 'global' keyword is needed. Same with the other function where the local $result is not the same as the global $result.
PHP код:
function GetBannedCount()
{
return $count;
}