call to undefined function mb_strimwidth

前端 未结 4 1672
梦毁少年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 02:06

    Just got this issue, if you are using linux just install the package php-mbstringand restart Apache.

    sudo apt-get install php-mbstring
    sudo service apache2 restart
    

    If you are using specific PHP version, you may need to run the following:

    sudo apt-get install php7.x-mbstring
    sudo service apache2 restart
    

    Replace 7.x by the exact PHP version.

提交回复
热议问题