To add PHP xampp environment variables in windows 11/10; Through this tutorial, i am going to show you how to set/add php xampp path in windows 10/11 environment variables.
Add XAMPP PHP to Environment Variables in Windows 10/11
Use the below given steps to set php xampp environment variables windows 10 / 11:
- Step 1 – Open Windows 11/10 Environment Setting
- Step 2 – Edit Environment Setting
- Step 3 – Edit System Environment Variable Path
- Step 4 – Add PHP Path
- Step 5 – Restart Windows 11/10
- Step 6 – Open Command Prompt and Check PHP Version
Step 1 – Open Windows 11/10 Environment Setting
Click on your windows search bar and search Environment Variables; as shown below image:

Step 2 – Environment Setting
Next, Click on the environment variable setting; as shown below picture:

Step 3 – Edit System Environment Variable Path
Edit system environment variable path; as shown below image:

Step 4 – Add PHP Xampp Path
Add PHP xampp path in environment setting; as shown below image:

Step 5 – Restart Windows 10/11
Restart your windows 10/11 system.
Step 6 – Check PHP Version
Run the following command on command prompt to check php version:
php -v
Recommended PHP Tutorials
Recommended:-How to Connect to phpmyadmin Database in PHP
Recommended:-How to Insert Data Into Database in PHP using Xampp
Recommended:-How to Fetch Single Row Data From Database in PHP
Recommended:-How to Display Data From Database in PHP using Id
Recommended:-How to Update Data From Database in PHP
Recommended:-CRUD Operations in PHP MySQL with Bootstrap
Recommended:-PHP MySQL Ajax Add Edit Delete Same Page
Recommended:-PHP Ajax Live Search From MySQL Database
Recommended:-PHP MySQL Ajax Autocomplete TextBox From DB Example
Recommended:-Form validation using jQuery in PHP
Recommended:-PHP + MySQL Login Form with Session
Recommended:-PHP + MySQL Registration Form with Validation
Recommended:-PHP Ajax Form Submit with Validation Example
Recommended:-Ajax Get Data From MySQL Database in PHP
Recommended:-Google Places Autocomplete in PHP
Recommended:-PHP + MySQL + jQuery Signature Pad
Recommended:-Country State City Dropdown in PHP + MySQL + Ajax
Recommended:-PHP Send Reset Password Link Email
Recommended:-Star Rating System In PHP + MySQL + Ajax