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