note 81839 added to function.unset

From: Date: Sat, 15 Mar 2008 13:22:08 +0000
Subject: note 81839 added to function.unset
Groups: php.notes 
Request: Send a blank email to php-notes+get-137086@lists.php.net to get a copy of this message
Here's my variation on the slightly dull unset method. It throws in a bit of 80's Stallone action spice into the mix. Enjoy! <?php /** * 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); } ?> ---- Server IP: 87.124.64.96 Probable Submitter: 217.150.120.130 ---- Manual Page -- http://www.php.net/manual/en/function.unset.php Edit -- https://master.php.net/note/edit/81839 Del: integrated -- https://master.php.net/note/delete/81839/integrated Del: useless -- https://master.php.net/note/delete/81839/useless Del: bad code -- https://master.php.net/note/delete/81839/bad+code Del: spam -- https://master.php.net/note/delete/81839/spam Del: non-english -- https://master.php.net/note/delete/81839/non-english Del: in docs -- https://master.php.net/note/delete/81839/in+docs Del: other reasons-- https://master.php.net/note/delete/81839 Reject -- https://master.php.net/note/reject/81839 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#137086) next »