Back to Drupal exercises for the in-class training
Exercise on Best Practices in Programming
Areas covered
- Programming logic
- Drupal coding standards
Write a PHP program which iterates the integers from 1 to 50. For multiples of three print "Three" instead of the number and for the multiples of five print "Five". For numbers which are multiples of both three and five print "ThreeFive".
Follow Drupal coding standard.