kaszu 1652 days ago. link 2 points ▲ ▼Since this is PHP, not JS solution, not sure if it belongs here