!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)

/uploads/script/vendor/ramsey/collection/src/Tool/   drwxr-xr-x
Free 13.18 GB of 57.97 GB (22.74%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/**
 * This file is part of the ramsey/collection library
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>
 * @license http://opensource.org/licenses/MIT MIT
 */

declare(strict_types=1);

namespace 
Ramsey\Collection\Tool;

use function 
is_array;
use function 
is_bool;
use function 
is_callable;
use function 
is_float;
use function 
is_int;
use function 
is_numeric;
use function 
is_object;
use function 
is_resource;
use function 
is_scalar;
use function 
is_string;

/**
 * Provides functionality to check values for specific types.
 */
trait TypeTrait
{
    
/**
     * Returns `true` if value is of the specified type.
     *
     * @param string $type The type to check the value against.
     * @param mixed $value The value to check.
     */
    
protected function checkType(string $type$value): bool
    
{
        switch (
$type) {
            case 
'array':
                return 
is_array($value);
            case 
'bool':
            case 
'boolean':
                return 
is_bool($value);
            case 
'callable':
                return 
is_callable($value);
            case 
'float':
            case 
'double':
                return 
is_float($value);
            case 
'int':
            case 
'integer':
                return 
is_int($value);
            case 
'null':
                return 
$value === null;
            case 
'numeric':
                return 
is_numeric($value);
            case 
'object':
                return 
is_object($value);
            case 
'resource':
                return 
is_resource($value);
            case 
'scalar':
                return 
is_scalar($value);
            case 
'string':
                return 
is_string($value);
            case 
'mixed':
                return 
true;
            default:
                return 
$value instanceof $type;
        }
    }
}

:: 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.0054 ]--