Home > Article > Development Tools > How to format an array in phpstorm
# generally, the ideal state of our array after formatting is: (Recommended learning: PHPSTORM )
$categories_faker = [ "校门", "图书馆", "宿舍", "快递", "食堂", "1号楼", "2号楼", "实验室", ];
So how to set up phpstorm so that the formatted back group appears in the above format?
File ==> Settings ==> Code Style ==> PHP
Find the Array initializer under Wraping and Braces
##Settings
## above, click Apply to apply.
The above is the detailed content of How to format an array in phpstorm. For more information, please follow other related articles on the PHP Chinese website!