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

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.

Curriculum and Training

Group events

Add to calendar

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: