PHP dirname() 函数
PHP 教程
· 2019-01-24 18:28:21
定义和用法
dirname() 函数返回路径中的目录名称部分。
语法
dirname(path)
| 参数 | 描述 |
|---|---|
| path | 必需。规定要检查的路径。 |
实例
<?php
echo dirname("c:/testweb/home.php") . "<br />";
echo dirname("/testweb/home.php");
?>
上面的代码将输出:
c:/testweb /testweb
点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html
High Performance Python
Andrew Lewis / O'Reilly Media, Inc. / 2010-09-15 / USD 34.99
Chapter 1. Introduction Section 1.1. The High Performance Buzz-word Chapter 2. The Theory of Computation Section 2.1. Introduction Section 2.2. Problems Section 2.3. Models of Computati......一起来看看 《High Performance Python》 这本书的介绍吧!
CSS 压缩/解压工具
在线压缩/解压 CSS 代码
RGB CMYK 转换工具
RGB CMYK 互转工具