获取文件的后缀名。phpinfo
1:
function get_extension($file){
//strrchr 返回 。jpg substr :1 是从1开始。
substr(strrchr($file,'.'),1)
}
2:
function get_extension($file){
//strrpos 返回出现的位置。
substr($file,strrpos($file,'.')+1);
}
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAScAAABeCAIAAADuYkWrAAAEEklEQVR4nO3dXW7qMBiE4Vl6l5aFdC+ci6pg/EccAtPDvNJzEYxJJsYfMa1EtH1vAN5J9gRAGtkTAGlkTwCkkT0BkEb2BEAa2RMAaWRPAKSRPQGQRvYEQBrZEwBpZE8ApJE9AZBG9WNd7JmAz6a7B7r8eMWRLrpcdCk3qu1u553tb9DNDxyg29bvTHpn1f08HPVfap8c95T+VB3OotvWYCbp6+vq4e6+pMr1qfL6Vr6knMrVZXCpvavsVpV693o76j/Jfz1r+3uJ/4XuHjTLy6rS9hTeyLzqnm9/eNzVPDv7b1QdFqnT1BTe/svd5Fo3MrpkrbZP9j8/9P7+wCl02+p9rzvxWjdyXTE+2T7f/+gpqg7vp9tW7w+YZZnt/Gq36sQV5sMq6m5PVpg7K5AVJpaoftzMs3JteXrhdf+ScaC93Vt7lD1/TRn1n6DksEr1Y9ZXiyg5rJI9AZBG9gRAGtkTAGlkTwCkkT0BkEb2BEAa2RMAaWRPAKSRPQGQRvYEQBrZEwBpZE8ApJE9AZBG9gRAGtkTAGlkTwCkkT0BkEb2BEAa2RMAaWRPAKSRPQGQRvYEQBrZE9jO/JW3Dft4jNtTo3d40P/suP8UU9te/nDl3a/Kv+xERknOfVX7g5yvvtnY0gfW6PdCk39H9PiZ/9mq2763P1J1oyTnvurNVbd6n0OqrjOG5Wj2b3VQNLaTddL/ydl8KXZUNW69C0LZuZ211XtcTh3VP7c+O+5oe3SBahu7+5/kH/XvntfvS95RdXX7+MZPq4X38T9ir+5Q9u/vcz9By4ejz7/DhdfOyHK7nPTzDlfdqms/SubHHfUZPTXf4Z7885e35/Xb7R0rzLuW6b2fqLp6AMtxbC9Tk7LpLtJOrLpK+VS7vTo7J1U3Ou42qOdRtj3BHuaf52nP65323+eQRWY9dN0RHI3s6KlXX+tGTz1ZdVvzsT3/QmWpuvlAvX/iHrjPIVVXj2E7gt0h7gz0X626/SvMY8fdswodtTy5wmwtTdyle9xug5Ve/8v/9D6HrDDrMWxHs/v9bdTYvg2v+GtKu+KqtrtPTd7g0cfH/LjtdtX/4X729O8e7pQV5oGqG86blfscLlXdx5fcFvVf8rbwnv9o2I7+b+B153XibpeqbjVe8rLz88/w6hVv5+gS9L+f14m7Ta6ukdwzB1xkTwCkkT0BkEb2BEAa2RMAaWRPAKSRPQGQRvYEQBrZEwBpZE8ApJE9AZBG9gRAGtkTAGlkTwCkkT0BkEb2BEAa2RMAaWRPAKSRPQGQRvYEQBrZEwBpZE8ApJE9AZBG9gRAGtkTAGlkTwCkkT0BkEb2BEAa2RMAaWRPAKSRPQGQRvYEQBrZEwBpZE8ApJE9AZBG9gRAGtkTAGlkTwCk+Qf10PP1+m6QegAAAABJRU5ErkJggg==" alt="" />
4:
pathinfo() 返回一个关联数组包含有 path 的信息。
包括以下的数组元素:
- [dirname]
- [basename]
- [extension]
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbIAAABUCAIAAABoeyVgAAAH3UlEQVR4nO2dXbakKgxGHXoNzYH0XE4/VLdLIH8gChz3XfvBQkwCdfw6WJK7/fz/b/+zu2yfLdINAGBdNmQRAOBMnSwCAPx6kEUAgARkEQAgAVkEAEhAFgEAEpBFAIAERxa3DbmES/zc/Cd0t/3V41k9ziFYsrhtP1/6e/18ts9n+OCX4/t92B0aDFZd9Uk7/2w/3xvsOChczCWLWpwd+zdfe8Vvl3krnX5bDm76UoxIMr+fyr/wNlRZPNTwoixq8jdKFleRY02qaoWvwYVNlSzOpoltV12RA+3aiM37Zs/4B6yUxZticCOcWhaTxv9ZXpnufVuy9nNj2V+0I0fZ5Pd8NhKPdqrks20Z3nf8LyMrU7MjXzu3nxvL/radiN/MvnZKHHgxtJ/s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9qllC7HU+0l5CyaP6fIR8G/Zql274rGblaWcZqFsPm75VFvmDO1SztR85rr7aOWktXWULdDYxrsiOUZSnjyqJl0inKYtQsnmNPyyJlEap08z04YrXsWTLPfhtTljKQyXj89inj0uLvjmXSf1lHcchPvhvavzK+nWWjsTrW7AfQnox+N2oPUw3jb5Fqu9Ds63vFiSe4ZZbqFv09OE55stel22Kso2Fgx+P51EhC0X9oXP74tTi1fWHMWOvfSIbHyMquKcvVEDfqHRHzxi+7T8q8N2MULKfHlsUNlMWoAm7HZOo8KfPezBvW8QbKAgC3A2WBM2kfgsw/lYMrgLIAQD4oCwDkg7IAQD4oCwDkg7IAQD4oCwDkg7IAQD4oCwDkg7IAQD4oCwDkg7IAQD4oCwDkg7IAQD4oCwDkg7IAQD4oCwDkg7IAQD4oCwDk8x/J0QzmOuwzPQAAAABJRU5ErkJggg==" alt="" />
echo出来就是 png
获取文件的后缀名。phpinfo的更多相关文章
- Java获取文件的后缀名。
/** * 详细步骤 */ private static void test1() { //获取文件的原始名称 String originalFilename = "tim.g (1).jp ...
- C#实现把指定文件夹下的所有文件复制到指定路径下以及修改指定文件的后缀名
1.实现把指定文件夹下的所有文件复制到指定路径下 public static void copyFiles(string path) { DirectoryInfo dir = new Directo ...
- 键盘录入一个文件夹路径,统计该文件夹(包含子文件夹)中每种类型的文件及个数,注意:用文件类型(后缀名,不包含.(点),如:"java","txt")作为key, 用个数作为value,放入到map集合中,遍历map集合
package cn.it.zuoye5; import java.io.File;import java.util.HashMap;import java.util.Iterator;import ...
- FileUtils【获取SD卡根目录、读写文件、移动、复制、删除文件、获取文件名、后缀名操作类】
版权声明:本文为HaiyuKing原创文章,转载请注明出处! 前言 封装了获取SD卡根目录路径.以及对文件读写.获取文件名等相关操作. 因为需要用到android.permission.READ_EX ...
- JS 根据文件路径获取名字和后缀名
var fileName = this.from.doc.substring(this.from.doc.lastIndexOf('/')+1); //文件名 var extNam ...
- C#获取图片的后缀名
最近在学习过程中遇到一个问题,就是如何获取图片的格式,对于一张知道全路径的照片,如果其路径包含后缀名的话,要取得后缀名,只需要一行代码即可: var ext = System.IO.Path.GetE ...
- php获取文件名和后缀名
php获取文件名 1 function retrieve($url) 2 { 3 preg_match('/\/([^\/]+\.[a-z]+)[^\/]*$/',$url,$match); 4 re ...
- 如何获取url中文件的后缀名
这是今天给学生解答问题的时候学生问的一个问题,我就在班级里给学生整体讲了一下,现在做一下分享,大家一起学习!! $url = 'http://www.sina.com.cn/abc/de/fg.php ...
- 电脑上文件的后缀名被隐藏,把一个文本文件改成.bat时,默认打开的还是文本。
1.打开文件夹,选择组织,点击“文件夹和搜索选项”,如图: 2.选择“查看”,找到“隐藏已知文件类型的扩展名”,不要勾选这一项,如图: 3.点击“确定”或者“应用”
随机推荐
- LeNet-5网络结构及训练参数计算
经典神经网络诞生记: 1.LeNet,1998年 2.AlexNet,2012年 3.ZF-net,2013年 4.GoogleNet,2014年 5.VGG,2014年 6.ResNet,201 ...
- linux下 /boot 分区空间不足及其衍生问题
linux的/boot引导分区有时会提示空间不足的问题,虽不影响系统的正常运行,但是人类天生对于未知的恐惧感总是影响心情的.而且在按安装其他软件的过程在中可能会出现以下问题: gzip: stdout ...
- 【面试季之三】IE6兼容问题
最近面试真的碰到很多基础的问题,平时在工作的时候往往可以直观的看到页面的问题,然后进行代码调试,调试不明白了还可以上网查一下.可是面试的时候,就是得当场反应出来,并且还得能系统的说出1.2.3.4.5 ...
- 查找对应jar的maven包
当原有项目换成maven项目时,往往不知道具体jar包在maven里叫什么.这边文章教你如何去找到自己想要的jar的maven包. 工具/原料 浏览器 方法/步骤 1 登录一下网站 http: ...
- CentOS 6+Hadoop 2.6.0分布式集群安装
1.角色分配 IP Role Hostname 192.168.18.37 Master/NameNode/JobTracker HDP1 192.168.18.35 Slave/DataNode/T ...
- C#网络编程(异步传输字符串) - Part.3
这篇文章我们将前进一大步,使用异步的方式来对服务端编程,以使它成为一个真正意义上的服务器:可以为多个客户端的多次请求服务.但是开始之前,我们需要解决上一节中遗留的一个问题. 消息发送时的问题 这个问题 ...
- Ubantu 新建用户后没有生成对应文件夹
原命令:useradd python 改正后:useradd python -m 后成功在home目录下创建文件夹 原因: man useradd就可以看到如此介绍:Create the user´s ...
- bzoj 1085 [SCOI2005]骑士精神——IDA*
题目:https://www.lydsy.com/JudgeOnline/problem.php?id=1085 迭代加深搜索. 估价函数是为了预计步数来剪枝,所以要优于实际步数. 没错,不是为了确定 ...
- Navicat for MySQL使用手记(下)--实现自动备份数据库
五.备份和还原MySQL数据库 在数据库的管理中,备份和还原是必须做认真做的事情,如果疏忽或者做粗糙了,那么一旦数据库故障后果不堪设想,所以Navicat同样也有备份和还原的功能,相比较创建功能,其备 ...
- (转)Oracle 临时表用法
本文转载自:http://www.iteye.com/topic/371390 ORACLE的临时表在应用系统中有很大的作用,它可以让用户只能够操作各自的数据中而互不干扰,不用担心会破坏或影响其他SE ...