Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45428 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98829 invoked from network); 28 Aug 2009 21:14:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Aug 2009 21:14:08 -0000 Authentication-Results: pb1.pair.com header.from=ceo@l-i-e.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ceo@l-i-e.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain l-i-e.com designates 67.139.134.202 as permitted sender) X-PHP-List-Original-Sender: ceo@l-i-e.com X-Host-Fingerprint: 67.139.134.202 o2.hostbaby.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from [67.139.134.202] ([67.139.134.202:2190] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B8/E0-28995-0A8489A4 for ; Fri, 28 Aug 2009 17:14:08 -0400 Received: (qmail 10960 invoked by uid 98); 28 Aug 2009 21:14:09 -0000 Received: from localhost by o2.hostbaby.com (envelope-from , uid 1013) with qmail-scanner-2.05 (clamdscan: 0.88.7/9755. Clear:RC:1(127.0.0.1):. Processed in 0.083209 secs); 28 Aug 2009 21:14:09 -0000 Received: from localhost (HELO l-i-e.com) (127.0.0.1) by localhost with SMTP; 28 Aug 2009 21:14:09 -0000 Received: from webmail (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Fri, 28 Aug 2009 16:14:09 -0500 (CDT) Message-ID: <63506.99.18.1251494049.squirrel@www.l-i-e.com> In-Reply-To: <50c696b0908180246u5a713c87u12bc1a09e7a46efb@mail.gmail.com> References: <4A6EE1BF.8080409@zend.com> <4A6F027B.3040608@zend.com> <4A6F3211.40801@sci.fi> <467D68D2-E465-4A25-B123-655A632B17AD@bitextender.com> <4A81145F.6050504@zend.com> <4A814259.1040308@zend.com> <1250532126.2446.16.camel@guybrush> <50c696b0908180246u5a713c87u12bc1a09e7a46efb@mail.gmail.com> Date: Fri, 28 Aug 2009 16:14:09 -0500 (CDT) To: "Ville Jungman" Cc: "php-dev List" User-Agent: Hostbaby Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] Re: SOAP_MARSHAL_DATETIME (or: bug #44383) From: ceo@l-i-e.com ("Richard Lynch") On Tue, August 18, 2009 4:46 am, Ville Jungman wrote: > ... but you would like to use the inner loop also elsewhere. Just > define it as a function ... > > while($numbers as $value){ > while(...){ > while(...){ > do_something_with($value); > do_something_with($value + 1); > } as function inner_loop($value); > } > } > > ... and go ... > > inner_loop(3); -1 While fun, this is just too esoteric for PHP, imho. -- Some people ask for gifts here. I just want you to buy an Indie CD for yourself: http://cdbaby.com/search/from/lynch