Re: PHP Brain Teasers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 12:51 PM -0400 8/5/08, Daniel Brown wrote:
On Tue, Jun 26, 2007 at 1:44 PM, Daniel Brown <parasane@xxxxxxxxx> 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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux