Supported Versions: PHP 5, PHP 7, PHP 8
Find the position of the last occurrence of a case-insensitive substring in a string
<?php strripos(string $haystack, string $needle, int $offset = 0): int|false
<?php         if (! is_null($columns)) {

            foreach ($columns as $column) {

                if (($position = strripos($column, ' as ')) !== false) {

                    $original = substr($column, 0, $position);



                    $alias = substr($column, $position + 4);