implode

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Join array elements with a string
Alias join
implode(string $separator, array $array): string
        $html[] = $debug $styles $this->minify($styles);



        return 
implode("\n"$html);

    }



    public function 
scripts($options = [])
        $html[] = $debug $scripts $this->minify($scripts);



        return 
implode("\n"$html);

    }



    protected function 
cssAssets($options = [])
        $errors $this->lastErrorBag;



        if (empty(
$keys)) {

            
PHPUnit::assertTrue($errors->isEmpty(), 'Component has errors: "'.implode('", "'$errors->keys()).'"');



            return 
$this;

        }
    public function setOutputTo(...$params)

    {

        
$this->output implode(''$params);

    }



    public function 
appendToOutput(...$params)
    public function appendToOutput(...$params)

    {

        
$this->output .= implode(''$params);

    }



    public function 
pause()
        $classDirnameSegments explode('\\'$classDirname);



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

            
$classDirname implode('\\'array_slice($classDirnameSegments0$index));



            return 
$classDirname.'\\Policies\\'.class_basename($class).'Policy';

        })->
reverse()->values()->first(function ($class) {
    public function broadcast(array $channels$event, array $payload = [])

    {

        
$channels implode(', '$this->formatChannels($channels));



        
$payload json_encode($payloadJSON_PRETTY_PRINT);
    {

        
$parts array_slice(str_split($hash sha1($key), 2), 02);



        return 
$this->directory.'/'.implode('/'$parts).'/'.$hash;

    }
    public function getNamespace()

    {

        return 
implode('|'$this->tagIds());

    }
    public static function join($array$glue$finalGlue '')

    {

        if (
$finalGlue === '') {

            return 
implode($glue$array);

        }



        if (
count($array) === 0) {
        $finalItem array_pop($array);



        return 
implode($glue$array).$finalGlue.$finalItem;

    }
            }

        }



        return 
implode(' '$classes);

    }
    public function implode($value$glue null)

    {

        if (
$this->useAsCallable($value)) {

            return 
implode($glue ?? ''$this->map($value)->all());

        }



        
$first $this->first();
        $first $this->first();



        if (
is_array($first) || (is_object($first) && ! $first instanceof Stringable)) {

            return 
implode($glue ?? ''$this->pluck($value)->all());

        }



        return 
implode($value ?? ''$this->items);
            return implode($glue ?? ''$this->pluck($value)->all());

        }



        return 
implode($value ?? ''$this->items);

    }