php练习题
来源:互联网 发布:mac电脑的顿号怎么打 编辑:程序博客网 时间:2024/05/19 06:35
//获取文件或则url的后缀名 方法一function getfiles1($file){$arr = parse_url("$file");$path = $arr['path'];$str = explode(".", $path);return array_pop($str);}$file = "E:\huiren\statics\js\huiren\back.js";print_r(getfiles1($file));//获取文件或则url的后缀名 方法二function getfiles2($file){$path = explode('.',$file);$suffix = array_pop($path);$su = explode('?',$suffix);return array_shift($su);}$file = "E:\huiren\statics\js\huiren\back.js";print_r(getfiles2($file));//获取文件或则url的后缀名 方法二function getfiles3($file){$suffix = pathinfo($file,PATHINFO_EXTENSION);$su = explode('?',$suffix);return array_shift($su);}$file = "E:\huiren\statics\js\huiren\back.js";print_r(getfiles3($file));
0 0
- php练习题
- php练习题
- php练习题
- php 练习题
- php练习题
- PHP 练习题
- PHP小练习题
- 几个php算法练习题
- php练习题之裁判打分
- PHP考试题 测试题 练习题 选择题
- 练习题
- 练习题
- 练习题
- 练习题
- 练习题
- 练习题
- 练习题
- 练习题
- 全新TMS320F28377S没法连接仿真器,解决办法
- LINK : fatal error LNK1104: cannot open file "mfc42
- 一步一步在Windows下搭建React Native Android开发环境
- 重定向与伪静态实战应用
- thinkphp 后台控制器写Excel导出html形式,html混合php
- php练习题
- C#设计模式02:观察者模式Observer Pattern
- Java开发中的23种设计模式详解(转)
- VLC学习(2) VLC架构及流程分析
- Linux命令——2.测及归档
- Idea 使用maven 创建SpringMVC 下载jar 失败
- C++ 命名空间
- NW之模型的快速、平滑定位
- 前端面试题4