wp_normalize_path()获取一个windows系统的正常路径

目录

描述

Call the functions to normalize a filesystem path.
This function is mainly for windows based server, to replaces backslashes with forward slashes, and ensures no duplicate slashes exist.

wp_normalize_path() 描述

用法

<?php wp_normalize_path($path); ?>

wp_normalize_path() 用法

参数

$path

(string) (必填) Path to normalize.

默认值: None

wp_normalize_path() 参数

返回值

(string

Normalized path.

wp_normalize_path() 返回值

示例

A Simple example to normalize the theme include path

print_r($bS_incl_path); shows

Using this function:

Without this function:

On a Windows server.

wp_normalize_path() 示例

历史

添加于 版本: 3.9

wp_normalize_path() 历史