how to call function after every +5 in value?

  cakephp, javascript, php

Hello everyone please help me i want call function on every +5 value

php example

$value = i++;

i want call function on 5, 10, 15, 20

If($value == 5)
{
  // Call function
}

Please if you have any logic please say us.

Thankyou

Source: Ask Javascript Questions

LEAVE A COMMENT