1, a way to create a new folder
mkdir($dir,0755,TRUE);
2, another way
mkdir($dir,'0755',TRUE);
As can be seen from the above, the permissions of the resulting folder are not the same, we should pay attention to it in the future and use the first method.