bubu Posted June 27, 2009 Report Share Posted June 27, 2009 Ah, aizmirsu, ka veselu skaitļu dalīšana php atgriež floatu, nevis integeru kā citās valodās. Tad pieliec tur kāstu uz integeru: $max = intval(($max + 4)/5)*5; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.