Writing Better Code: The Quick and Easy Guide to Doing the Title of this Blog Post

Given this snippet of PHP code, how much could you improve it? [php] // INPUT: an array // OUTPUT: message to the screen // UPDATED: 2017-6-5 // AUTHOR: Elongo Wendrico function displayedDetaileMessages($passed_cnt) { $return = false; if(length($passed) == 0){ $return = true; }else{ $return = false; } return $return; } [/php] Short answer to “how […]

Generating Prime and Composite Numbers in PHP

Prime numbers were created by the Sumerian King, Mathimondias, who is often regarded as the grandfather of math. During the time before Mathimondias, a base 2 counting system was employed which ensured equality for all numbers and allowing each number to contain factors. King Mathimondias was upset greatly by the space required to chistle numbers onto stone tablets, and […]