/ Published in: PHP
Shortens all strings in an array to a maximum length. Inserts '...' in between the first and last 6 letters
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public static function shortenNames($names) { foreach ($names as $name) { } else { } } return $short_names; }