1/* File->Preferences->settings->User settings tab->extensions->from the drop down select php->on the right pane under PHP › Validate: Executable Path select edit in settings.json.
2
3Then set the path as your case may be e.g for a xamp user who installed xammp on c drive you will have:
4*/
5"php.validate.executablePath": "c:\\xampp\\php\\php.exe"
6
7/* If php is installed in your system independently or by other means simply set the path of your php.exe file like below:
8*/
9"php.validate.executablePath": "C://path.to.your.php.folder//php.exe"