Exercise on Best Practices in Programming - Drupal Training Curriculum for Drupal Companies

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
You are viewing a wiki page. You are welcome to join the group and then edit it. Be bold!

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.