Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Split a string by a string
<?php explode(string $separator, string $string, int $limit = PHP_INT_MAX): array
<?php     'previous_keys' => [

        ...array_filter(

            explode(',', env('APP_PREVIOUS_KEYS', ''))

        ),

    ],
<?php     'previous_keys' => [

        ...array_filter(

            explode(',', env('APP_PREVIOUS_KEYS', ''))

        ),

    ],
<?php         'stack' => [

            'driver' => 'stack',

            'channels' => explode(',', env('LOG_STACK', 'single')),

            'ignore_exceptions' => false,

        ],
<?php         $classDirname = str_replace('/', '\\', dirname(str_replace('\\', '/', $class)));



        $classDirnameSegments = explode('\\', $classDirname);



        return Arr::wrap(Collection::times(count($classDirnameSegments), function ($index) use ($class, $classDirnameSegments) {

            $classDirname = implode('\\', array_slice($classDirnameSegments, 0, $index));
<?php     public function id()

    {

        return explode('|', $this->recaller, 3)[0];

    }
<?php     public function token()

    {

        return explode('|', $this->recaller, 3)[1];

    }
<?php     public function hash()

    {

        return explode('|', $this->recaller, 4)[2];

    }
<?php     protected function hasAllSegments()

    {

        $segments = explode('|', $this->recaller);



        return count($segments) >= 3 && trim($segments[0]) !== '' && trim($segments[1]) !== '';

    }
<?php     public function segments()

    {

        return explode('|', $this->recaller);

    }

}
<?php     protected function tags()

    {

        return array_filter(explode(',', $this->option('tags') ?? ''));

    }
<?php                 continue;

            }



            $parts = explode('.', $key);




            $array = &$original;
<?php             return $array[$key] ?? value($default);

        }



        foreach (explode('.', $key) as $segment) {

            if (static::accessible($array) && static::exists($array, $segment)) {

                $array = $array[$segment];

            } else {
<?php                 continue;

            }



            foreach (explode('.', $key) as $segment) {

                if (static::accessible($subKeyArray) && static::exists($subKeyArray, $segment)) {

                    $subKeyArray = $subKeyArray[$segment];

                } else {
<?php     protected static function explodePluckParameters($value, $key)

    {

        $value = is_string($value) ? explode('.', $value) : $value;



        $key = is_null($key) || is_array($key) ? $key : explode('.', $key);
<?php     {

        $value = is_string($value) ? explode('.', $value) : $value;



        $key = is_null($key) || is_array($key) ? $key : explode('.', $key);



        return [$value, $key];

    }