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.So how would that look in PHP? Something like?
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
With $dbObject;
if(->doConnect()==true)
{
->doQuery();
while($row = ->fetchArray())
{ /* do something with returned row */ }
}
End With:Just a question from an onlooker.
Cheers, BDKR
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
