SyntaxFix
Write A Post
Hire A Developer
Questions
So you want the next multiple of 6, is that it?
You can divide your number by 6, then ceil it, and multiply it again:
ceil
$answer = ceil($foo / 6) * 6;