PHP – Safe division by distributing whole numbers
Is there a math functon in PHP that would provide safe division without fractions/decimal numbers? Meaning that it would "distribute" the amount as equally as possible, but only in whole numbers. Some examples: 10/3 = [4, 3, 3] 11/3 =…