Earlier today, Microsoft announced that its own Integrated Development Environment (IDE), Visual Studio, is now available on macOS. This is made possible by the joint effort between the Visual Studio for Windows team and Xamarin which Microsoft acquired earlier this year. The new Visual Studio for Mac is based on the existing Xamarin Studio and MonoDevelop IDEs and has all of its features while the UI and UX improvements are coming from 'classic' Visual Studio.
Just for note.
If you need the php explode function in C#, you can use the following code: