While coding PHP applications there are times when we need to check if a number is even odd or multiple of another Here are few methods to do the same h Method h pre class lang php decode true number if number amp echo 'Odd number ' else echo 'Even number ' pre h Method h pre class lang php decode true number if number echo 'Odd number ' else echo 'Even number ' pre h Method h pre class lang php decode true number echo number 'Even' 'Odd' pre h Method h Check if number is multiple of another...

Continue Reading