Php7.2 installs the bcmath extension
Today happens to use the bcadd () function, the result reported an error, Baidu under the reason is that there is no installation of bcmath extension.
Then install it, search it, I am php7.2 installed by yum, and the extension can also be installed by yum.
Ah, yum is a great tool.
Okay, here we go.
1. Type the command (72W is the php version, with no chance of error)
Yum install php72w-bcmath
Enter
2.ok, after installation, just restart the server Nginx or Apache, you see, the play is so simple!
Ps: of course, it is recommended to restart the server. For example, if I restart Nginx, it will not work. It is better to restart Dafa!
Shutdown-r now # restart immediately