Supported Versions: PHP 5, PHP 7, PHP 8
Find the position of the first occurrence of a case-insensitive substring in a string
<?php stripos(string $haystack, string $needle, int $offset = 0): int|false
<?php             array_filter(

                $columns,

                fn (Column $column) => $column->dataType() === 'date'

                    || stripos($column->dataType(), 'datetime') !== false

                    || stripos($column->dataType(), 'timestamp') !== false

            )

        );
<?php                 $columns,

                fn (Column $column) => $column->dataType() === 'date'

                    || stripos($column->dataType(), 'datetime') !== false

                    || stripos($column->dataType(), 'timestamp') !== false

            )

        );

    }
<?php             return 'date';

        }



        if (stripos($column->dataType(), 'datetime') !== false) {

            return 'datetime';

        }
<?php             return 'datetime';

        }



        if (stripos($column->dataType(), 'timestamp') !== false) {

            return 'timestamp';

        }
<?php             return 'timestamp';

        }



        if (stripos($column->dataType(), 'integer') || $column->dataType() === 'id') {

            return 'integer';

        }