Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.NET to PHP snippet - Translate this for me please!

Status
Not open for further replies.

southbeach

Programmer
Jan 22, 2008
879
US
Reading docs on a WSDL service, they show

Code:
Dim _Transaction As New Source.Connect.Transaction

What is the PHP equivalent for this line of code?


Thank you all for your assistance!



--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.
 
lol - I am asking for a .NET code snippet to be translated to PHP, not the other way around ... I was hoping some one in this forum would at least define what the snippet of code does in plain English ...

Thanks!

--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.
 
That "snippet" is a bit short on context, i.e. none.
My best guess: it declares a new transaction on a database connection and immediately instanciates it.
Similar example would be:
Code:
var context = new DataContext();
var _Transaction = context.BeginTransaction();

Without further information on what kind of database connection is being used, cannot say more.

"Knowledge is power. Information is liberating. Education is the premise of progress, in every society, in every family." (Kofi Annan)
Oppose SOPA, PIPA, ACTA; measures to curb freedom of information under whatever name whatsoever.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top