How to get id number of a track from SoundCloud URL in PHP

When you are developing web apps in PHP programming language you might need to integrate Soundcloud API. SoundCloud API is great but it doesn’t have proper guide about getting the id number of the track from a SoundCloud track URL.

There is PHP wrapper of SoundCloud which helps to get started. You must first download and install it from PHP SoundCloud Wrapper SDK.

I am going to show you today you can quickly get id number of a SoundCloud track.

This is just a simple way of getting the track id number in structural way. However, it can be also done in OOP style.

Please feel free to share.