Last active
October 10, 2017 05:13
-
-
Save buiquangduc/4928dcf0c3251a78055b1b5d82269345 to your computer and use it in GitHub Desktop.
Routine with Procedural cohesion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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