1、file--settings--Project:script_01_02.php(此文件名會根據情況而變)--Directories--Add Content Root,添加php所在的文件夾
2、file--settings--Languages & Frameworks--PHP:
PHP language level:5.6(根據php版本而定)
Interpreter--選擇....--點擊+--Other local...--
Name:輸入PHP(也可以是其它名字),
PHP executable:找到PHP.exe 所在的路徑,
Advanced--Configuration options:可以不用輸入
點擊Apply--OK