Re: PHP Brain Teasers

From: Date: Wed, 06 Aug 2008 21:40:01 +0000
Subject: Re: PHP Brain Teasers
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-277782@lists.php.net to get a copy of this message
At 12:51 PM -0400 8/5/08, Daniel Brown wrote:
On Tue, Jun 26, 2007 at 1:44 PM, Daniel Brown <parasane@gmail.com> wrote:
Try to use some really common phrases that all of us around the world should recognize, but feel free to get really elaborate with the
code.
function getToDoList($wifeList) { list($doWhat, $doWhen) = explode ("/r", $wifeList); $anarray1 = split(" ", $doWhat); $anarray2 = split(" ", $doWhen); $tomorrow = mktime(1, 0, 0, $m, $d + 1, $y); for ($i = 0; $i < count($anarray1); $i++)
      {
      if (in_array($anarray2[$i], $tomorrow))
         {
         $putoff = $tomorrow;
         }
      else
         {
         $putoff = rand($excuse);
         }       return $putoff
} Cheers, tedd PS: Not guaranteed to work. -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#277782) next »