implode

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Join array elements with a string
Alias join
<?php implode(string $separator, array $array): string
<?php     public function setOutputTo(...$params)

    {

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

    }



    public function appendToOutput(...$params)
<?php     public function appendToOutput(...$params)

    {

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

    }



    public function pause()
<?php {

    public function handle($request, $next)

    {

        throw new \Exception(implode(',', $request->route()->computedMiddleware));

    }

}
<?php         $value = $array[$first];



        if (count($segments) > 0) {

            return static::dataGetWithoutWildcardSupport($value, implode('.', $segments), $default);

        }



        return $value;
<?php         $errors = $this->errors();



        if (empty($keys)) {

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



            return $this;

        }
<?php         $html[] = $scripts;



        return implode("\n", $html);

    }



    public static function js($options)
<?php         if ($path !== '') {

            $value = $data[$first] ?? null;



            return $this->getMetaForPath($value, implode('.', $segments));

        }



        return $meta;
<?php         $property = $segments[$index];



        $path = implode('.', array_slice($segments, 0, $index + 1));



        $synth = $this->propertySynth($target, $context, $path);
<?php         $classDirnameSegments = explode('\\', $classDirname);



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

            $classDirname = implode('\\', array_slice($classDirnameSegments, 0, $index));



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

        })->reverse()->values()->first(function ($class) {
<?php     public static function using($guard, ...$others)

    {

        return static::class.':'.implode(',', [$guard, ...$others]);

    }
<?php     public static function using($guard = null, $field = null)

    {

        return static::class.':'.implode(',', func_get_args());

    }
<?php     public static function using($ability, ...$models)

    {

        return static::class.':'.implode(',', [$ability, ...$models]);

    }
<?php     public static function using($redirectToRoute = null, $passwordTimeoutSeconds = null)

    {

        return static::class.':'.implode(',', func_get_args());

    }
<?php     public function broadcast(array $channels, $event, array $payload = [])

    {

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



        $payload = json_encode($payload, JSON_PRETTY_PRINT);
<?php     {

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



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

    }