Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Set the internal pointer of an array to its last element
<?php end(array|object &$array): mixed
<?php         $key_pattern = self::patternCache($core->getPHPlaterObject(self::CLASS_KEY));

        $tag_list = $tag_chain . $tag_chain;

        $all_before_parts = explode($tag_list, $matches['x'][0]);

        $tag_last = end($all_before_parts) === '' ? '' : $tag_chain;

        $tag_first = reset($all_before_parts) === '' ? '' : $tag_chain;

        $core_parts = explode($tag_chain, $all_before_parts[0]);

        $elements = '';