call to undefined function mb_strimwidth

前端 未结 4 1675
梦毁少年i
梦毁少年i 2021-02-19 01:06

Months ago I made a short code that uses mb_strimwidth() to exactly fit some text into a table cell, putting dots at the end of a truncated string. Now, after some

4条回答
  •  误落风尘
    2021-02-19 01:42

    All mb_* functions are provided by a PHP extension called Multibyte String, internal name mbstring

    You probably don't have the extension active or installed. On most Linux distros you can install the package php-mbstring to install and activate this extension.

    Apache needs to be restarted afterwards if you are using mod_php

提交回复
热议问题