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         if (isset($this->newDirectives[$directiveContent]) === false) {

            $error = 'Declare can only be used with the directives %s. Found: %s';

            $data  = [

                \implode(', ', \array_keys($this->newDirectives)),

                $directiveContent,

            ];
<?php             $insteadFoundMessages[] = $issue['message'];

        }



        $insteadMessagesString = \implode(', ', $insteadFoundMessages);



        $msg = "Expected $type message '$expectedMessage' on line $lineNumber not found. Instead found: $insteadMessagesString.";
<?php         }



        $failMessage = "Failed asserting no standards violation on line $lineNumber. Found: \n"

            . \implode("\n", $encounteredMessages);

        $this->assertCount(0, $encounteredMessages, $failMessage);

    }