loading...

How do you deal with Money in PHP?

zubairmohsin33 profile image Zubair Mohsin ・1 min read

What's your take on dealing with money in PHP?

Use third party package like MoneyPHP?

Use decimal or integer datatype in MySQL and in PHP use BCMath to perform operations?

Discussion

pic
Editor guide
 

I usually use the moneyphp/money to accomplish this issue :).

 

I just use integer for my local currency.