Write a PHP program to check whether a sequence of numbers is an arithmetic progression or not.
Input : array(5, 7, 9, 11)
In mathematics, an arithmetic progression or arithmetic sequence is a sequence of numbers such that the difference between the consecutive terms is constant.
For example, the sequence 5, 7, 9, 11, 13, 15 ... is an arithmetic progression with common difference of 2.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer