function ellipsis($long_string, $max_character = 30)
{
$short_string = strlen($long_string) > $max_character ? substr($long_string, 0, $max_character) . "..." : $long_string;
return $short_string;
}
Code Example |
---|
:: ezSql PDO Connection |
Php :: |
Php :: |
:: movies -inurl:(htm|html|php|pls|txt) intitle:index.of “last modified” (mp4|wma|aac|avi) |
Php :: |
Php :: |
Php :: |
Php :: |
Php :: |
:: |
:: |
:: |
:: how to get session variables from cookie string |
Php :: how can get attribute without getter in laravel |
:: |
:: |
Php :: php domdocument get elements one by one |
Php :: |
Php :: |
:: |
Php :: |
:: source code in html to add two numbers together |
Php :: |
Php :: |
Php :: symfony dump request headers |
Php :: PHP force refresh image |
Php :: laravel error not responding well |
Php :: |
Php :: |
Php :: redaxo urlGenerator, urlGenerator::getId(), Class "UrlGenerator" not found |