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     $phplater_array->setFilter('strtoupper', 'mb_strtoupper');

    $phplater_array->setFilter('lowercase', 'mb_strtolower');

    $phplater_array->setFilter('implode', function (array $data) {

        return implode('', $data);

    });

    $phplater_array->setPlate('tens', [['K', 'y', 'm', 'm', 'e', 'n', 'e', 'n']]);

    $phplater_array->setPlate('nine', 'nine');
<?php         </table>

    ');

}

echo implode('', $return);
<?php     private function doOpreration(string $condition): bool|string|int {

        $operators = ['\={3}', '\={2}', '\!\={2}', '\!\={1}', '\<\=\>', '\>\=', '\<\=', '\<\>', '\>', '\<', '%', '&{2}', '\|{2}', 'xor', 'and', 'or'];

        if (preg_match('/.+\s*(' . implode('|', $operators) . ')\s*.+/U', $condition, $matches)) {

            $a_and_b = explode($matches[1], $condition);

            $a = trim($this->getCore()->render($a_and_b[0]));

            $b = trim($this->getCore()->render($a_and_b[1]));
<?php             return $data . ' ok';

        });

        $this->phplater->setFilter('implode', function (array $data) {

            return implode('', $data);

        });



        $this->phplater->setPlate('string_one', 'ok');
<?php         foreach ($list as $item) {

            $result[] = $this->phplater->setPlate('item', $item)->render();

        }

        $this->assertEquals('this is ok and this is ok too', implode(' and ', $result));

    }