!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/main_file/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/   drwxr-xr-x
Free 13.2 GB of 57.97 GB (22.78%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Counts.php (2.68 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace PhpOffice\PhpSpreadsheet\Calculation\Statistical;

use 
PhpOffice\PhpSpreadsheet\Calculation\Exception as CalcException;
use 
PhpOffice\PhpSpreadsheet\Calculation\Functions;

class 
Counts extends AggregateBase
{
    
/**
     * COUNT.
     *
     * Counts the number of cells that contain numbers within the list of arguments
     *
     * Excel Function:
     *        COUNT(value1[,value2[, ...]])
     *
     * @param mixed ...$args Data values
     *
     * @return int
     */
    
public static function COUNT(...$args)
    {
        
$returnValue 0;

        
// Loop through arguments
        
$aArgs Functions::flattenArrayIndexed($args);
        foreach (
$aArgs as $k => $arg) {
            
$arg self::testAcceptedBoolean($arg$k);
            
// Is it a numeric value?
            // Strings containing numeric values are only counted if they are string literals (not cell values)
            //    and then only in MS Excel and in Open Office, not in Gnumeric
            
if (self::isAcceptedCountable($arg$ktrue)) {
                ++
$returnValue;
            }
        }

        return 
$returnValue;
    }

    
/**
     * COUNTA.
     *
     * Counts the number of cells that are not empty within the list of arguments
     *
     * Excel Function:
     *        COUNTA(value1[,value2[, ...]])
     *
     * @param mixed ...$args Data values
     *
     * @return int
     */
    
public static function COUNTA(...$args)
    {
        
$returnValue 0;

        
// Loop through arguments
        
$aArgs Functions::flattenArrayIndexed($args);
        foreach (
$aArgs as $k => $arg) {
            
// Nulls are counted if literals, but not if cell values
            
if ($arg !== null || (!Functions::isCellValue($k))) {
                ++
$returnValue;
            }
        }

        return 
$returnValue;
    }

    
/**
     * COUNTBLANK.
     *
     * Counts the number of empty cells within the list of arguments
     *
     * Excel Function:
     *        COUNTBLANK(value1[,value2[, ...]])
     *
     * @param mixed $range Data values
     *
     * @return int
     */
    
public static function COUNTBLANK($range)
    {
        if (
$range === null) {
            return 
1;
        }
        if (!
is_array($range) || array_key_exists(0$range)) {
            throw new 
CalcException('Must specify range of cells, not any kind of literal');
        }
        
$returnValue 0;

        
// Loop through arguments
        
$aArgs Functions::flattenArray($range);
        foreach (
$aArgs as $arg) {
            
// Is it a blank cell?
            
if (($arg === null) || ((is_string($arg)) && ($arg == ''))) {
                ++
$returnValue;
            }
        }

        return 
$returnValue;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0049 ]--