Count numbers which are divisible by all the numbers from 2 to 10 | Function to return the count of numbers from 1 to n which are divisible by all the numbers from 2 to 10 ; Driver code
< ? php function countNumbers ( $ n ) { return ( int ) ( $ n / 2520 ) ; } $ n = 3000 ; echo ( countNumbers ( $ n ) ) ; ? >