Git remove file permanently

Oh!!! I have added a file that I didn’t want!! What is the next? How can I remove it from my repository? Don’t worry! You can remove a file from your repository since you are using Git.

split() is deprecated as of PHP 5.3.0

I am upgrading an old PHP website and I have found several deprecated functions one of them is “split()” which I used many times in the past. Which functions we can use right now? And why is this massive used function deprecated?