Is using the directory separator constant necessary?

前端 未结 3 1899
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-10 10:23

I am using PHP, but I guess this question might be language agnostic.

With PHP, a constant is defined by PHP, called DIRECTORY_SEPARATOR. I ha

3条回答
  •  伪装坚强ぢ
    2020-12-10 10:40

    Windows actually uses a backslash as the directory separator, although some environments that have Windows versions will translate between forward slashes and backslashes automatically (Python comes to mind).

提交回复
热议问题