if(-f aa.txt) then 什么意思,该怎么解决

WBOY
Release: 2016-06-13 10:27:21
Original
1187 people have browsed it

if(-f aa.txt) then 什么意思
刚学 php ,xml
看别人写的程序 ,不知道什么意思 
1 if(-f aa.txt) then // 从意思看是如果aa.txt 存在就删除
那个 -f 是什么意识 
2 if () then 
  fi // fi 是什么意思  
 

------解决方案--------------------
这是shell语法,和php没关系
-f 表示aa.txt是普通文件
fi 表示结束if逻辑

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!