Answer the question
In order to leave comments, you need to log in
How to truncate menu item name with ellipsis if it is longer than 15 characters?
Hi all. I'm trying to implement "cutting" the name of a menu item more than 15 characters to 12 characters and set an ellipsis at the end. Tried to implement through the concatenation operator, but nothing came of it. How can this be done correctly? thank you in advance
Answer the question
In order to leave comments, you need to log in
https://www.php.net/manual/ru/function.mb-strimwid...
But it's better to use
htmlbook.ru/css/text-overflow
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question