immerhin ein versuch
Auf der Suche nach nützlichen Informationen in PHP API Dokumentationen findet sich ab und an auch…sagen wir mal “Erheiterndes”, denn genau so spröde oldschool wie der Begriff, ist auch der Humor, der hinter dem Code steckt, aber wie gesagt, immerhin ein Versuch. Wenn Programmierer witzig sein wollen, kommt mitunter Skurriles dabei heraus:
/**
* function rambo (first blood)
*
* Completely and utterly destroys everything, returning the kill
* count of victims
*
* @param It don't matter, it’s Rambo baby
* @return Integer Body count (but any less than 500 and it's not
* really worth mentioning)
*/
function rambo() {
// Get the victims and initiate that body count status
$victims = func_get_args();
$body_count = 0;
// Kill those damn punks
foreach($victims as $victim) {
if($death_and_suffering = @unset($victim)) {
$body_count++;
}
}
// How many kills did Rambo tally up on this mission?
return($body_count);
}
?>
