Home  >  Article  >  Backend Development  >  全局变量这里为啥这样写呢

全局变量这里为啥这样写呢

WBOY
WBOYOriginal
2016-06-23 14:39:10936browse

本帖最后由 lghyt 于 2013-12-08 17:46:08 编辑

 

uploadFile('$__FILES["spic"])  //这么写我理解

uploadFile('spic')             //但这样写我就晕了,为什么这样?因为在我的概念中,函数里后面的括号里只能放变量$

注:uploadFile是一个自定义的函数。

回复讨论(解决方案)

既然 uploadFile是一个自定义的函数 那么你就看他里面是怎么写的就是了
你的函数,别人又不知道

Statement:
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
Previous article:关于php微信的开发。Next article:能帮我解密吗?