How to run php file in visual studio code with xampp

How to run php file in visual studio code, How to make php build task in visual studio code problem solved,how to run php code in visual studio code or vscode configure file,

This code for tasks.json inside configure data copy and paste into visual studio code.
———————————–
{

“version”: “0.1.0”,

“command”: “chrome”,

“windows”: {

“command”: “C:\Program Files (x86)\Google\Chrome\Application\chrome.exe”

},

“args”: [“localhost\${workspaceRootFolderName}\${fileBasename}”]

}

—————————

Another thing you need visual studio code showing error like php validate. need to add below code
in user settings.
————————————
1. file – preferences – settings
2. right side display the user setting add this code. Thank You.. ! Like & Commet .

“php.validate.executablePath”: “C:\xampp\php\php.exe”

——————————–
Please subscribe channel …. Thank You !

source