How to set the encoding format of PHP files: first use notepad software to open the PHP file; then click the "Encoding" option in the top navigation bar, and select the required encoding format in the open drop-down menu, such as "UTF8 BOM" ;Finally save the file.
The operating environment of this tutorial: windows7 system, PHP7.1&¬epad version 7.6.1, DELL G3 computer
Setting the php file Encoding format method
Open your notepad software, then open your php file
Click on the location shown in the picture below and click on encoding
In the encoding pop-up box, you can see the UTF8 BOM format
Select UTF8BOM format
Click save
Then your php file will become UTF8 BOM format
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of How to set the encoding format of php files. For more information, please follow other related articles on the PHP Chinese website!