Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:6335 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3868 invoked by uid 1010); 10 Dec 2003 18:15:22 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 3828 invoked from network); 10 Dec 2003 18:15:21 -0000 Received: from unknown (HELO cedar.phpwebhosting.com) (66.132.144.42) by pb1.pair.com with SMTP; 10 Dec 2003 18:15:21 -0000 Received: (qmail 30442 invoked from network); 10 Dec 2003 18:15:16 -0000 Received: from unknown (HELO highsidecafe.com) (65.40.44.13) by cedar2.phpwebhosting.com with SMTP; 10 Dec 2003 18:15:16 -0000 Message-ID: <3FD762B5.1080908@highsidecafe.com> Date: Wed, 10 Dec 2003 13:15:17 -0500 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: internals@lists.php.net References: <3FD67054.2030000@zworg.com> In-Reply-To: <3FD67054.2030000@zworg.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] With End With From: bdkr@highsidecafe.com (BDKR) jason davidson wrote: > Ive seen the Control Flow constuct With ...End With used in VB (yup, > VB.. :)) although im not a fan of VB, i liked the feature, is there > any consideration to this kind of construct for php. > here the only example if it i could find online for anyone that hasnt > seen it before. > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcn7/html/vaconusingwith.asp > > Aside from being VB, is there anything wrong with it. > > Jason > So how would that look in PHP? Something like? With $dbObject; if(->doConnect()==true) { ->doQuery(); while($row = ->fetchArray()) { /* do something with returned row */ } } End With: Just a question from an onlooker. Cheers, BDKR