-
In .NET
The Process class contains several useful properties/methods that allow developers to access process relative information.
Is there any equivalent method or class in PHP? -
Is there any equivalent method in PHP like C# method “Process.Start()”?
In .NET The Process class contains several useful properties/methods that allow developers to access
Share
1.See Program execution FunctionsExcept there’s no concept of methods/classes/properties/namespaces in the PHP standard functions. PHP is essentially a procedural programming language with few OOP constructs and namespace support being added as a new feature as of the last major release (5.3). It’s one of the reasons why people criticise it as a ‘toy’ language. You can access all of the PHP built-in functions all the time, no pesky namespaces to get in the way ;), just be careful of name collisions.
2.@YSJaitawat Right answer bad reference.Click this link for the exec function documentation in the PHP manual.
Note: Also, if you’re migrating from C# to PHP and looking for info the PHP manual has some surprisingly good info including user-submitted comments at the bottom of the entry where people usually post use-cases or extensions to the standard uses. It’s probably the easiest language to learn because of the wealth of info to be found in the manual.