Others answered why there are two functions that perform the same thing.
However :
Is there a difference between chop and rtrim?
Yes, there is a difference!
In terms of functionality there is (currently) no difference. They both (currently) work the same way as one, it's just an alias of the other.
However , notice that PHP.net still states :
It is usually a bad idea to use these aliases, as they may be related to deprecation or renaming, which will lead to an unmanaged script.
The difference is that this is an older function, reserved for backward compatibility.
This is not pedantic. As with any changes in PHP (e.g. mysql_ functions, depreciable), if you have a choice, you should use the very latest.
Perhaps the alias may be removed in a future version of PHP, or the alias is no longer supported, and therefore you lose the improvements made to the new function.
James source share