Skip to content

Instantly share code, notes, and snippets.

@buiquangduc
Last active October 10, 2017 05:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save buiquangduc/4928dcf0c3251a78055b1b5d82269345 to your computer and use it in GitHub Desktop.
Save buiquangduc/4928dcf0c3251a78055b1b5d82269345 to your computer and use it in GitHub Desktop.
Routine with Procedural cohesion
<?php
// Example of routine with procedural cohesion
// Imagine that you have a input screen that display the input fields in the order: email, name, address,.. of employee
function getNameEmailAddressInputEmployee($input) {
// Stuff to get the input name
// Stuff to get the input email
// Stuff to get the input address
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment