PHP get class name without namespace

Below is the simple function to get class name without namesapce.

I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.