XAMPP is a popular PHP development environment for creating a local LAMP stack.

In this succinct tutorial, I will show us how to upgrade XAMPP for Windows to a newer version in few steps.
Firstly, download and install the latest version of XAMPP in a new installation folder.
Say your older version is in C:\xampp and the newer version was installed in D:\xampp; Delete the htdocs and MySQL folder in D:\xampp and replace them with the ones in C:\xampp.
The End.