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 […]