Couldn't tell you honestly. When I needed a function like that I googled it and this is what I got as a result.
It works so I didn't bother messing with it any further, but if you find that this part of the code isn't actually needed it can be removed, of course.
|