photo/helpers.php

8 lines
180 B
PHP
Raw Normal View History

2024-08-31 12:56:52 +00:00
<?php
if (! function_exists('stringtrim')) {
function stringtrim(string $string,int $chrs=6)
{
return sprintf('%s...%s',substr($string,0,$chrs),substr($string,-1*$chrs));
}
}