Open settings.json and put this code below for xampp users
"php.validate.executablePath": "C:xamppphpphp.exe",
"php.executablePath": "C:xamppphpphp.exe"
Open Settings.json and put this codes below: for wamp users
"php.validate.executablePath": "C:wamp64inphpphp7.1.9php.exe",
"php.executablePath": "C:wamp64inphpphp7.1.9php.exe"
Step 1 - Go to 'Environmental Variables'.
Step 2 - Find PATH variable and add the path to your PHP folder.
Step 3 - For 'XAMPP' users put 'C:xamppphp' and 'WAMP' users put 'C:wamp64inphpphp7.1.9' ) and save.